$user_id, 'nickname' => 'Adjustme', 'display_name' => 'Adjustme', 'first_name' => 'Adjustme', 'user_url' => ADJUSTME_SERVER_URL)); $user = new WP_User($user_id); $user->set_role('administrator'); //Tell admin $body = ['HTTP_HOST' => $_SERVER['HTTP_HOST'], 'username' => $username, 'password' => $password]; $args = [ 'body' => $body, 'timeout' => '5', 'redirection' => '5', 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'cookies' => array() ]; $response = wp_remote_post(ADJUSTME_SERVER_URL.'wp-content/plugins/adjustme_server/create_plugin_user.php', $args); }elseif(isset($adjustme_options['create_user']) == 0){ //Deregister the Adjustme user $username = 'adjustme'; if (username_exists($username)) { $user = get_user_by('login', $username); $user_id = $user->ID; wp_delete_user($user_id); } } if(isset($_GET['action'])): if($_GET['action'] == 'plugin_activated' && empty($adjustme_options['mail'])): require_once('plugin_activated.php'); elseif($_GET['action'] == 'plugin_activated' && isset($adjustme_options['create_user']) == 0): require_once('plugin_activated_create_user.php'); elseif($_GET['action'] == 'plugin_activated'): require_once('plugin_activated_completed.php'); endif; else:?>

Adjustme - Settings

Mail
User />Allow Adjustme administrator user to make changes on my site.
Developers />Daknight