Uma área de pesquisa sobre o WordPress para devs e autores do tema



category_css_class ›

Desde4.2.0
Obsoleton/a
apply_filters( 'category_css_class', $css_classes, $category, $depth, $args )
Parâmetros: (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
Ver:
  • wp_list_categories()
Definido em:
Codex:

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





Fonte

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