apply_filters( "term_links-{$taxonomy}", string[] $links )

Filters the term links for a given taxonomy.


Description

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

Top ↑

Parameters

$links string[]
An array of term links.

Top ↑

Source

File: wp-includes/category-template.php. View all references

$term_links = apply_filters( "term_links-{$taxonomy}", $links );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores


Top ↑

Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.