Filter hook 'category_css_class'

in WP Core File wp-includes/class-walker-category.php at line 245

Description

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

Occurrences

Filename Line Number
wp-includes/class-walker-category.php 245

Parameters

Type Name Description
string[] $css_classes An array of CSS classes to be applied to each list item.
WP_Term $category Category data object.
int $depth Depth of page, used for padding.
array $args An array of wp_list_categories() arguments.

PHP Doc

/**
			 * Filters the list of CSS classes to include with each category in the list.
			 *
			 * @since 4.2.0
			 *
			 * @see wp_list_categories()
			 *
			 * @param string[] $css_classes An array of CSS classes to be applied to each list item.
			 * @param WP_Term  $category    Category data object.
			 * @param int      $depth       Depth of page, used for padding.
			 * @param array    $args        An array of wp_list_categories() arguments.
			 */