WordPress at a glance
filter is not described

page_css_class filter-hook . WP 2.8.0

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


add_filter( 'page_css_class', 'filter_function_name_5635', 10, 5 );
function filter_function_name_5635( $css_class, $page, $depth, $args, $current_page ){
	// filter...

	return $css_class;
An array of CSS classes to be applied to each list item.
Page data object.
Depth of page, used for padding.
An array of arguments.
ID of the current page.


Since 2.8.0 Introduced.

Where the hook is called

wp-includes/class-walker-page.php 150
$css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) );

Where in WP core the hook is used

Usage not found!