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