Filters whether to allow administrators on Multisite to edit every user.
Description
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.
Parameters
$allowbool
Whether to allow editing of any user. Default true.
96*97* @param bool$allow Whether to allow editing of any user.Defaulttrue.98*/99if(is_multisite()100&&!current_user_can('manage_network_users')101&&$user_id!==$current_user->ID102&&!apply_filters('enable_edit_any_user_configuration',true)103){104wp_die(__('Sorry, you are not allowed to edit this user.'));105}106107// Execute confirmed email change. See send_confirmation_on_profile_email().108if(IS_PROFILE_PAGE&&isset($_GET['newuseremail'])&&$current_user->ID){
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.