Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_revoke_user [ WordPress Function ]

wp_revoke_user ( $id )
Parameters:
  • (int) $id User ID.
Defined at:



Remove all capabilities from user.

Source


<?php
function wp_revoke_user($id) {
    
$id = (int) $id;

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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics