get_the_tags хук-фильтр . WP 2.3.0
Filters the array of tags for the given post.
Использование
add_filter( 'get_the_tags', 'filter_function_name_4066' ); function filter_function_name_4066( $terms ){ // filter... return $terms; }
- $terms(WP_Term[])
- An array of tags for the given post.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_the_tags
wp-includes/category-template.php 1136
return apply_filters( 'get_the_tags', get_the_terms( $id, 'post_tag' ) );