WordPress at Your Fingertips
function is not described

wp_revoke_user() WP 2.1.0

Remove all capabilities from user.

No Hooks.

Return

null. Nothing.

Usage

wp_revoke_user( $id );
$id(int) (required)
User ID.

Changelog

Since 2.1.0 Introduced.

Code of wp_revoke_user() WP 5.8.2

function wp_revoke_user( $id ) {
	$id = (int) $id;

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