apply_filters( 'category_css_class', string[] $css_classes, WP_Term $category, int $depth, array $args )
Filters the list of CSS classes to include with each category in the list.
Description
See also
Parameters
- $css_classes
-
(string[]) An array of CSS classes to be applied to each list item.
- $category
-
(WP_Term) Category data object.
- $depth
-
(int) Depth of page, used for padding.
- $args
-
(array) An array of wp_list_categories() arguments.
Source
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/category_css_class