Switch language

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




get_role [ WordPress Function ]

get_role ( $role )
Parameters:
  • (string) $role Role name.
See:
Returns:
  • (object)
Defined at:



Retrieve role object.

Source


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

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

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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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