Create multisite user
-
Hi there,
I would like to know how i can create a multisite user without access to back office and database. Using FTP !
With this code (in fonction.php) it’s OK but don’t have access ton the Network admin panel.
function wpb_admin_account(){ $user = 'Username'; $pass = 'Password'; $email = 'email@domain.com'; 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');Any Idea ?
Thank you !
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Create multisite user’ is closed to new replies.