category_css_class

最后更新于:2021-11-25 22:34:10

apply_filters( ‘category_css_class’, string[] $css_classes, GC_Term $category, int $depth, array $args )

Filters the list of CSS classes to include with each category in the list.

参数

$css_classes

(string[])
An array of CSS classes to be applied to each list item.

$category

(GC_Term)
Category data object.

$depth

(int)
Depth of page, used for padding.

$args

(array)
An array of gc_list_categories() arguments.

源文件

文件: gc-includes/class-walker-category.php

View on Trac