ID) { wp_die('You cannot delete yourself'); } wp_delete_user($user_id); // Show a message to say we've done something echo '

' . __('User deleted') . '

'; return; } if ($_POST['update_options'] == "Approve User"){ $user_role = new WP_User($user_id); $user_role->set_role("subscriber"); $headers = "MIME-Version: 1.0\n" . "From: ". get_option('admin_email'); $message = "Dear " . $user->user_firstname .",\n"; $message .= "Your account with ".get_bloginfo('name')." has been approved. You may login using the following info. \n"; $message .= "Username: " . $user->user_login . "\n"; $message .= "URL: " . get_bloginfo('url') . "/wp-login.php"; @wp_mail($user->user_email, 'Your Account Has Been Approved', $message, $headers); //email the user telling them they've been approved // Show a message to say we've done something echo '

' . __('User Approved. Notification sent via email.') . '

'; return; } } ?>

User Waiting Approval

ID); $capabilities = $absolutePrivacy->capabilities; if (!array_key_exists($absolutePrivacy->role, $user_role->$capabilities)){ echo "Looks like that user has already been approved."; return; } ?>

The following user registered on user_registered; ?> GMT

Name: user_firstname . " " . $user->user_lastname; ?>
Username: user_login; ?>
Email: user_email; ?>