wp_revoke_user() – Remove all capabilities from user.

You appear to be a bot. Output may be restricted

Description

Remove all capabilities from user.

Usage

wp_revoke_user( $id );

Parameters

$id
( int ) required – User ID.

Returns

void

Source

File name: wordpress/wp-admin/includes/user.php
Lines:

1 to 6 of 6
function wp_revoke_user( $id ) {
  $id = (int) $id;

  $user = new WP_User( $id );
  $user->remove_all_caps();
}
 

 View on GitHub View on Trac