category_css_class

category_css_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('category_css_class') is found 1 times:

  • /wp-includes/class-walker-category.php line 245
    			 * @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.
    			 */
    			$css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) );
    			$css_classes = $css_classes ? ' class="' . esc_attr( $css_classes ) . '"' : '';
    
    			$output .= $css_classes;
    			$output .= ">$link\n";
    		} elseif ( isset( $args['separator'] ) ) {
    			$output .= "\t$link" . $args['separator'] . "\n";