get_the_tags filter-hook . WP 2.3.0
Filters the array of tags for the given post.
Usage
add_filter( 'get_the_tags', 'filter_function_name_6482' ); function filter_function_name_6482( $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.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
get_the_tags
wp-includes/category-template.php 1173
return apply_filters( 'get_the_tags', $terms );