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 Description

Top ↑

See also See also

Top ↑

Parameters Parameters


(string[]) An array of CSS classes to be applied to each list item.


(WP_Term) Category data object.


(int) Depth of page, used for padding.


(array) An array of wp_list_categories() arguments.

Top ↑

Source Source

File: wp-includes/class-walker-category.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.