get_tags хук-фильтр . WP 2.3.0
Filters the array of term objects returned for the 'post_tag' taxonomy.
Использование
add_filter( 'get_tags', 'filter_function_name_5684', 10, 2 ); function filter_function_name_5684( $tags, $args ){ // filter... return $tags; }
- $tags(WP_Term[]/число/WP_Error)
- Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
- $args(массив)
- An array of arguments. @see get_terms()
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_tags
wp-includes/category.php 311
$tags = apply_filters( 'get_tags', $tags, $args );