Filters the term field sanitized for display. The dynamic portion of the hook name, `$field`, refers to the term field name.
$value, $term_id, $taxonomy, $context
Sortie :
@param mixed $value Value of the term field. @param int $term_id Term ID. @param string $taxonomy Taxonomy slug. @param string $context Context to retrieve the term field value.
// Modifier la valeur avec le filtre 'term_{$field}'
add_filter('term_{$field}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($value) {
// Modifier la valeur
return $value;
}
Chargement des actualités...