get_editable_roles [ WordPress Function ]
| Returns: |
|
| Defined at: |
|
Fetch a filtered list of user roles that the current user is allowed to edit.
Simple function who's main purpose is to allow filtering of the list of roles in the $wp_roles object so that plugins can remove inappropriate ones depending on the situation or user making edits. Specifically because without filtering anyone with the edit_users capability can edit others to be administrators, even if they are only editors or authors. This filter allows admins to delegate user management.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- get_editable_roles (WordPress Function) - WPSeek.com
WordPress lookup for get_editable_roles, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - get_editable_roles - Function Reference - PHP Cross Reference ...
Jun 1, 2011 ... Function and Method Cross Reference. get_editable_roles(). Defined at: /wp- admin/includes/user.php -> line 193. Referenced 5 times: ...
xref.yoast.com - get_editable_roles | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_editable_roles() { global $wp_roles; $all_roles = $wp_roles->roles; $editable_roles = apply_filters('editable_roles', $all_roles); ...
hitchhackerguide.com - WordPress › Support » Tags — get_editable_roles
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » get_editable_roles. Tag: get_editable_roles Add New » · Developer ...
wordpress.org