term_links-{$taxonomy}

FILTER wp-includes\category-template.php (ligne 1375) github
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`

Paramètres

Entrée :
$links
Sortie :
@param string[] $links An array of term links.

Utilisation

// 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;
}

Actualités

Chargement des actualités...