get_the_tags хук-фильтр . WP 2.3.0
Filters the array of tags for the given post.
Использование
add_filter( 'get_the_tags', 'filter_function_name_7735' ); function filter_function_name_7735( $terms ){ // filter... return $terms; }
- $terms(WP_Term[]/false/WP_Error)
- Array of WP_Term objects on success, false if there are no terms or the post does not exist, WP_Error on failure.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_the_tags
wp-includes/category-template.php 1173
return apply_filters( 'get_the_tags', $terms );