term_links-post_format filter-hookWP 2.5.0

Filters the term links for a given taxonomy.

This is one of the variants of the dynamic hook term_links-(taxonomy)

Usage

add_filter( 'term_links-post_format', 'wp_kama_term_links_post_format_filter' );

/**
 * Function for `term_links-post_format` filter-hook.
 * 
 * @param string[] $links An array of term links.
 *
 * @return string[]
 */
function wp_kama_term_links_post_format_filter( $links ){

	// filter...
	return $links;
}
$links(string[])
An array of term links.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

get_the_term_list()
term_links-post_format
wp-includes/category-template.php 1375
$term_links = apply_filters( "term_links-{$taxonomy}", $links );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Where the hook is used in WordPress

Usage not found.