wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



category_css_class › WordPress Filter Hooks

Seit4.2.0
Veraltetn/v
apply_filters( 'category_css_class', $css_classes, $category, $depth, $args )
Parameter: (4)
  • (string[]) $css_classes An array of CSS classes to be applied to each list item.
    Erforderlich: Ja
  • (WP_Term) $category Category data object.
    Erforderlich: Ja
  • (int) $depth Depth of page, used for padding.
    Erforderlich: Ja
  • (array) $args An array of wp_list_categories() arguments.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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