WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about category_css_class

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-walker-category.php apply_filters 241 /**
* 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.
*/

Hook Parameters

Parameter 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.