Switch language

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




remove_role [ WordPress Function ]

remove_role ( $role )
Parameters:
  • (string) $role Role name.
See:
Returns:
  • (null)
Defined at:



Remove role, if it exists.

Source


<?php
function remove_role$role ) {
    global 
$wp_roles;

    if ( ! isset( 
$wp_roles ) )
        
$wp_roles = new WP_Roles();

    return 
$wp_roles->remove_role$role );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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