wpseek.com
WordPress开发者和主题制作者的搜索引擎



enable_edit_any_user_configuration › WordPress过滤钩子

Since3.0.0
已弃用n/a
apply_filters( 'enable_edit_any_user_configuration', true )
参数:
  • (bool) $allow Whether to allow editing of any user. Default true.
    Required: Yes
定义在:
文档:

Filters whether to allow administrators on Multisite to edit every user.

Enabling the user editing form via this filter also hinges on the user holding the 'manage_network_users' cap, and the logged-in user not matching the user profile open for editing.

The filter was introduced to replace the EDIT_ANY_USER constant.





源码

&& ! apply_filters( 'enable_edit_any_user_configuration', true )