Filters the term links for a given taxonomy. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `term_links-category` - `term_links-post_tag` - `term_links-post_format`
$links
Sortie :
@param string[] $links An array of term links.
// Modifier la valeur avec le filtre 'term_links-{$taxonomy}'
add_filter('term_links-{$taxonomy}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($links) {
// Modifier la valeur
return $links;
}
Chargement des actualités...