enable_edit_any_user_configuration

FILTER wp-admin\user-edit.php (ligne 102) github
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.

Paramètres

Entrée :
true
Sortie :
@param bool $allow Whether to allow editing of any user. Default true.

Utilisation

// Modifier la valeur avec le filtre 'enable_edit_any_user_configuration'
add_filter('enable_edit_any_user_configuration', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...