the_tags хук-фильтрWP 2.3.0

Filters the tags list for a given post.

Использование

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(строка)
List of tags.
$before(строка)
String to use before the tags.
$sep(строка)
String to use between the tags.
$after(строка)
String to use after the tags.
$post_id(int)
Post ID.

Список изменений

С версии 2.3.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.