the_tags хук-фильтр . WP 2.3.0
Filters the tags list for a given post.
Использование
add_filter( 'the_tags', 'filter_function_name_3384', 10, 5 ); function filter_function_name_3384( $tag_list, $before, $sep, $after, $post_id ){ // filter... return $tag_list; }
- $tag_list(строка)
- List of tags.
- $before(строка)
- String to use before the tags.
- $sep(строка)
- String to use between the tags.
- $after(строка)
- String to use after the tags.
- $post_id(число)
- Post ID.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
the_tags
wp-includes/category-template.php 1202
return apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id );