WordPress开发者和主题制作者的搜索引擎



category_css_class ›

Since4.2.0
已弃用n/a
apply_filters( 'category_css_class', $css_classes, $category, $depth, $args )
参数: (4)
  • (array) $css_classes An array of CSS classes to be applied to each list item.
    Required: Yes
  • (object) $category Category data object.
    Required: Yes
  • (int) $depth Depth of page, used for padding.
    Required: Yes
  • (array) $args An array of wp_list_categories() arguments.
    Required: Yes
查看:
  • wp_list_categories()
定义在:
文档:

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





源码

$css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) );