A WordPress-centric search engine for devs and theme authors



category_css_class ›

Since4.2.0
Deprecatedn/a
apply_filters( 'category_css_class', $css_classes, $category, $depth, $args )
Parameters: (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
See:
  • wp_list_categories()
Defined at:
Codex:

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





Source

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