enable_edit_any_user_configuration
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'enable_edit_any_user_configuration', bool $allow )
Описание
Включение формы редактирования пользователя через этот фильтр также зависит от наличия у пользователя права доступа 'manage_network_users' и от того, что вошедший в систему пользователь не совпадает с профилем, открытым для редактирования.
Фильтр был введён взамен константы EDIT_ANY_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.
Фильтруемое значение
Параметры
$allow
bool
обязательный
Исходный код
wp-admin/user-edit.php:102
&& ! apply_filters( 'enable_edit_any_user_configuration', true )
История изменений
| Версия | Описание |
|---|---|
| 3.0.0 | Introduced. |

