get_role [ WordPress Function ]
get_role ( $role )
| Parameters: |
|
| See: |
|
| Returns: |
|
| Defined at: |
|
Retrieve role object.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_role() - WordPress Codex
Description. Fetch a Role definition. Usage. <?php get_role( $role ); ?> Parameters. role: (string) (required) role name. Default: None. Returns. (mixed): Returns ...
codex.wordpress.org - #18237 (get_role triggers a PHP notice) – WordPress Trac
get_role (in wp-includes/capabilities.php) incorrectly returns a null value as a reference, triggering a PHP notice "Only variable references should be returned by ...
core.trac.wordpress.org - get_role (WordPress Function) - WPSeek.com
WordPress lookup for get_role, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - How to distinguish between user roles in wordpress? - Stack Overflow
... structure would look like: if(get_role() = 'subscriber'){ redirect }. Thanks. Incidentally i have tried get_role($role) and that doesn't work for me.
stackoverflow.com