get_the_terms

最后更新于:2021-11-27 00:07:45

apply_filters( ‘get_the_terms’, GC_Term[]|GC_Error $terms, int $post_id, string $taxonomy )

Filters the list of terms attached to the given post.

参数

$terms

(GC_Term[]|GC_Error)
Array of attached terms, or GC_Error on failure.

$post_id

(int)
Post ID.

$taxonomy

(string)
Name of the taxonomy.

源文件

文件: gc-includes/category-template.php

View on Trac