Filters a term field value before it is sanitized. The dynamic portion of the hook name, `$field`, refers to the term field.
$value, $taxonomy
Sortie :
@param mixed $value Value of the term field. @param string $taxonomy Taxonomy slug.
// 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;
}
Chargement des actualités...