当前浏览:首页 / WordPress钩子 / the_category_list

apply_filters( 'the_category_list', WP_Term[] $categories, int|bool $post_id )

在构建类别列表之前过滤类别

cat

category 分类more...

listmore...

themore...


参数

$categories

(WP_Term[]) 文章类别的数组。

$post_id

(int|bool) 要检索类别的文章ID。当false时,我们假定当前文章在循环中的。



源码

查看源码 官方文档


更新日志

版本描述
4.4.0开始引入