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');
@newuser_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;
}
}
?>
Absolute Privacy: User Waiting Approval
ID);
$capabilities = $this->capabilities;
if (!array_key_exists($this->role, $user_role->$capabilities)){
echo "Looks like that user has already been approved. ";
return;
}
$plugin_path = get_bloginfo('wpurl') . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__));
?>
How To Support This Plugin |
|
|
Plugin Help |
|
|