首页 WordPress函数大全 get_the_tag_list()

get_the_tag_list()

2020-05-02 / 3384阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_tag_list( string $before = '', string $sep = '', string $after = '', int $id )

Retrieve the tags for a post formatted as a string.

描述

参数

$before

(string)
(Optional)
Before tags.

Default value: ''

$sep

(string)
(Optional)
Between tags.

Default value: ''

$after

(string)
(Optional)
After tags.

Default value: ''

$id

(int)
(Optional)
Post ID. Defaults to the current post.

返回

(string|false|WP_Error) A list of tags>WP_Error on failure.

大家谈论
    我的见解