apply_filters( 'the_tags', string $tag_list, string $before, string $sep, string $after, int $post_id )
- Since
- 2.3.0
Filters the tags list for a given post.
Compatibility
- WordPress
- since 2.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$tag_liststring- List of tags.
$beforestring- String to use before the tags.
$sepstring- String to use between the tags.
$afterstring- String to use after the tags.
$post_idint- Post ID.
Where this hook fires · 1
wp-includes/category-template.php:1219get_the_tag_list()
Source code
* @param string $tag_list List of tags. * @param string $before String to use before the tags. * @param string $sep String to use between the tags. * @param string $after String to use after the tags. * @param int $post_id Post ID. */ return apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id );} /** * Displays the tags for a post. * * @since 2.3.0Changelog
Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.