the_terms хук-фильтрWP 2.9.0

Filters the list of terms to display.

Использование

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(строка)
List of terms to display.
$taxonomy(строка)
The taxonomy name.
$before(строка)
String to use before the terms.
$sep(строка)
String to use between the terms.
$after(строка)
String to use after the terms.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.