enable_edit_any_user_configuration WordPress Filter Hook

The enable_edit_any_user_configuration hook allows you to edit any user configuration. This hook is useful for when you need to change the default values for new users or when you want to change the way an existing user is configured.

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 on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.