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