wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_the_tag_list › WordPress Function
Since2.3.0
已弃用n/a
› get_the_tag_list ( $before = '', $sep = '', $after = '', $post_id = 0 )
参数: (4) |
|
返回: |
|
定义在: |
|
文档: |
Retrieves the tags for a post formatted as a string.
Related Functions: get_the_tags, get_the_term_list, get_the_category_list, get_the_title, get_theme_feature_list
源码
function get_the_tag_list( $before = '', $sep = '', $after = '', $post_id = 0 ) { $tag_list = get_the_term_list( $post_id, 'post_tag', $before, $sep, $after ); /** * Filters the tags list for a given post. * * @since 2.3.0 * * @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 apply_filters( 'the_tags', $tag_list, $before, $sep, $after, $post_id ); }