post_link_category
最后更新于:2021-11-27 16:53:20
apply_filters( ‘post_link_category’, GC_Term $cat, array $cats, GC_Post $post )
Filters the category that gets used in the %category% permalink token.
参数
- $cat
-
(GC_Term)
The category to use in the permalink. - $cats
-
(array)
Array of all categories (GC_Term objects) associated with the post. - $post
-
(GC_Post)
The post in question.
源文件
文件: gc-includes/link-template.php