首页 WordPress函数大全 get_term_link()

get_term_link()

2020-05-01 / 5275阅 / 悠然

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

get_term_link( WP_Term|int|string $term, string $taxonomy = '' )

Generate a permalink for a taxonomy term archive.

描述

参数

$term

(WP_Term|int|string)
(Required)
The term object, ID, or slug whose link will be retrieved.

$taxonomy

(string)
(Optional)
Taxonomy.

Default value: ''

返回

(string|WP_Error) URL of the taxonomy term archive>WP_Error if term does not exist.

大家谈论
    我的见解