apply_filters( 'enable_edit_any_user_configuration', bool $allow )

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.


Top ↑

Parameters

$allow bool
Whether to allow editing of any user. Default true.

Top ↑

Source

File: wp-admin/user-edit.php. View all references

&& ! apply_filters( 'enable_edit_any_user_configuration', true )

Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.