the_terms filter-hookWP 2.9.0

Filters the list of terms to display.

Usage

add_filter( 'the_terms', 'wp_kama_the_terms_filter', 10, 5 );

/**
 * Function for `the_terms` filter-hook.
 * 
 * @param string $term_list List of terms to display.
 * @param string $taxonomy  The taxonomy name.
 * @param string $before    String to use before the terms.
 * @param string $sep       String to use between the terms.
 * @param string $after     String to use after the terms.
 *
 * @return string
 */
function wp_kama_the_terms_filter( $term_list, $taxonomy, $before, $sep, $after ){

	// filter...
	return $term_list;
}
$term_list(string)
List of terms to display.
$taxonomy(string)
The taxonomy name.
$before(string)
String to use before the terms.
$sep(string)
String to use between the terms.
$after(string)
String to use after the terms.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

the_terms()
the_terms
wp-includes/category-template.php 1475
echo apply_filters( 'the_terms', $term_list, $taxonomy, $before, $sep, $after );

Where the hook is used in WordPress

Usage not found.