Filter hook 'enable_edit_any_user_configuration'
in WP Core File wp-admin/user-edit.php at line 102
Description
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.
Occurrences
Filename |
Line Number |
wp-admin/user-edit.php |
102 |
Parameters
Type |
Name |
Description |
bool |
$allow |
Whether to allow editing of any user. Default true. |
PHP Doc
/**
* 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.
*
* @since 3.0.0
*
* @param bool $allow Whether to allow editing of any user. Default true.
*/