WordPress at a glance
filter is not described

term_(field) filter-hook . WP 2.3.0

Filters the term field sanitized for display.

The dynamic portion of the filter name, $field, refers to the term field name.


add_filter( 'term_(field)', 'filter_function_name_1684', 10, 4 );
function filter_function_name_1684( $value, $term_id, $taxonomy, $context ){
	// filter...

	return $value;
Value of the term field.
Term ID.
Taxonomy slug.
Context to retrieve the term field value.

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

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

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

wp-includes/taxonomy.php 1702
$value = apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context );

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

wp-includes/default-filters.php 161
add_filter( 'term_name_rss', 'convert_chars' );
wp-includes/default-filters.php 494
add_filter( 'term_link', '_post_format_link', 10, 3 );
wp-includes/ms-default-filters.php 78
add_filter( 'term_id_filter', 'global_terms', 10, 2 );