wp_revoke_user( int $id )

Remove all capabilities from user.


Parameters

$id int Required
User ID.

Top ↑

Source

File: wp-admin/includes/user.php. View all references

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

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


Top ↑

Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.