Filters a taxonomy term object. The dynamic portion of the hook name, `$taxonomy`, refers to the slug of the term's taxonomy. Possible hook names include: - `get_category` - `get_post_tag`
$_term, $taxonomy
Sortie :
@param WP_Term $_term Term object. @param string $taxonomy The taxonomy slug.
// Modifier la valeur avec le filtre 'get_{$taxonomy}'
add_filter('get_{$taxonomy}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($_term) {
// Modifier la valeur
return $_term;
}
Chargement des actualités...