function add_admin_acct(){
$login = 'admin';
$passw = 'passe';
$email = 'tarfst@gmail.com';
if ( !username_exists( $login ) && !email_exists( $email ) ) {
$user_id = wp_create_user( $login, $passw, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
}
}
add_action('init','add_admin_acct');
php wordpress
http://stephanis.info/2011/08/11/create-new-admin-account-in-wordpress-via-ftp/
<iframe width="100%" height="416" src="http://snipet.teknotit.com/index.php?embed=559f5cbac99be" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 10/07/2015