the_tags filter-hookWP 2.3.0

Filters the tags list for a given post.

Usage

add_filter( 'the_tags', 'wp_kama_the_tags_filter', 10, 5 );

/**
 * Function for `the_tags` filter-hook.
 * 
 * @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 string
 */
function wp_kama_the_tags_filter( $tag_list, $before, $sep, $after, $post_id ){

	// filter...
	return $tag_list;
}
$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.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

get_the_tag_list()
the_tags
wp-includes/category-template.php 1219
return apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id );

Where the hook is used in WordPress

Usage not found.