Filters the tags list for a given post.
Parameters
$tag_list
string- List of tags.
$before
string- String to use before the tags.
$sep
string- String to use between the tags.
$after
string- String to use after the tags.
$post_id
int- 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