wpseek.com
A WordPress-centric search engine for devs and theme authors



category_css_class › WordPress Filter Hooks

Since4.2.0
Deprecatedn/a
apply_filters( 'category_css_class', $css_classes, $category, $depth, $args )
Parameters: (4)
  • (string[]) $css_classes An array of CSS classes to be applied to each list item.
    Required: Yes
  • (WP_Term) $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
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 ) );