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.


Top ↑

See also

Top ↑


$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.
More Arguments from wp_list_categories( ... $args ) Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.

Top ↑


File: wp-includes/class-walker-category.php. View all references

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

Top ↑


Version Description
4.2.0 Introduced.

Top ↑

User Contributed Notes

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