Add wp_revoke_user() and WP_User::remove_all_caps() to help those doing multi blog stuff.

git-svn-id: https://develop.svn.wordpress.org/trunk@3705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-04-13 04:49:38 +00:00
parent 112af5d381
commit 8cdd21978f
2 changed files with 15 additions and 0 deletions

View File

@@ -274,6 +274,13 @@ function wp_delete_user($id, $reassign = 'novalue') {
return true;
}
function wp_revoke_user($id) {
$id = (int) $id;
$user = new WP_User($id);
$user->remove_all_caps();
}
function get_link($link_id, $output = OBJECT) {
global $wpdb;