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_2252', 10, 5 );
function filter_function_name_2252( $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.

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.