WordPress at Your Fingertips
filter is not described

category_css_class filter-hook . WP 4.2.0

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


add_filter( 'category_css_class', 'filter_function_name_5215', 10, 4 );
function filter_function_name_5215( $css_classes, $category, $depth, $args ){
	// filter...

	return $css_classes;
An array of CSS classes to be applied to each list item.
Category data object.
Depth of page, used for padding.
An array of wp_list_categories() arguments.


Since 4.2.0 Introduced.

Where the hook is called

wp-includes/class-walker-category.php 235
$css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) );

Where in WP core the hook is used WordPress

Usage not found.