user_{$name}_label

FILTER wp-admin\user-edit.php (ligne 616) github
Filters a user contactmethod label. The dynamic portion of the hook name, `$name`, refers to each of the keys in the contact methods array.

Paramètres

Entrée :
$desc
Sortie :
@param string $desc The translatable label for the contact method.

Utilisation

// Modifier la valeur avec le filtre 'user_{$name}_label'
add_filter('user_{$name}_label', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...