wp_revoke_user( int $id )
Remove all capabilities from user.
Parameters
- $id
-
(Required) User ID.
Source
File: wp-admin/includes/user.php
function wp_revoke_user($id) {
$id = (int) $id;
$user = new WP_User($id);
$user->remove_all_caps();
}
Changelog
Version | Description |
---|---|
WP-2.1.0 | Introduced. |