WordPress at a glance
filter is not described

get_the_terms filter-hook . WP 3.1.0

Filters the list of terms attached to the given post.


add_filter( 'get_the_terms', 'filter_function_name_9499', 10, 3 );
function filter_function_name_9499( $terms, $post_id, $taxonomy ){
	// filter...

	return $terms;
Array of attached terms, or WP_Error on failure.
Post ID.
Name of the taxonomy.

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

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

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

wp-includes/category-template.php 1292
$terms = apply_filters( 'get_the_terms', $terms, $post->ID, $taxonomy );

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

wp-includes/revision.php 593
add_filter( 'get_the_terms', '_wp_preview_terms_filter', 10, 3 );