Created
March 30, 2014 17:09
-
-
Save WP-Panda/9876065 to your computer and use it in GitHub Desktop.
add new user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userdata = array( | |
'user_pass' => '123456789', //пароль | |
'user_login' => 'names', //имя юзера | |
'role' => 'administrator' // роль пользвателя | |
); | |
wp_insert_user( $userdata ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment