Filters the tags list for a given post.
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.
Source
return apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
The_tags receives an html string formed in this way:
In order to replace a tag you may use Clase DOMDocument. For example, you can replace all tags using a replacement word. but do not change the tag’s links. A more useful example can replace some tags by an alias or by a translation.
output is this:
An easiest way to replace the_tags