Function: wp_revoke_user

wp_revoke_user( integer $id )

Remove all capabilities from user.

Parameters

Name Type(s) Default Value Description
$id integer

User ID.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.