apply_filters( 'the_tags', string $tag_list , string $before , string $sep , string $after , int $post_id )
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
File: wp-includes/category-template.php
.
View all references
return apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id );
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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