wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_editable_roles › WordPress Function
Since2.8.0
已弃用n/a
› get_editable_roles ( 没有参数 )
返回: |
|
定义在: |
|
文档: |
Fetch a filtered list of user roles that the current user is allowed to edit.
Simple function whose 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.Related Functions: get_editable_authors, get_editable_user_ids, get_the_title_rss, get_edit_profile_url, get_site_url