pre_term_{$field}

FILTER wp-includes\taxonomy.php (ligne 1833) github
Filters a term field value before it is sanitized. The dynamic portion of the hook name, `$field`, refers to the term field.

Paramètres

Entrée :
$value, $taxonomy
Sortie :
@param mixed  $value    Value of the term field.
@param string $taxonomy Taxonomy slug.

Utilisation

// Modifier la valeur avec le filtre 'pre_term_{$field}'
add_filter('pre_term_{$field}', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...