On this page
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_classesstring[]-
An array of CSS classes to be applied to each list item.
$categoryWP_Term-
Category data object.
$depthint-
Depth of page, used for padding.
$argsarray-
An array of wp_list_categories() arguments.
More Arguments from wp_list_categories( ... $args )
Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.
Source
File: wp-includes/class-walker-category.php. View all references
$css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) );
Related
Used By
| Used By | Description |
|---|---|
| Walker_Category::start_el() wp-includes/class-walker-category.php | Starts the element output. |
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/category_css_class