page_css_class

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'page_css_class', string[] $css_class, WP_Post $page, int $depth, array $args, int $current_page )

Parameters Parameters

$css_class

An array of CSS classes to be applied to each list item.

$page

Page data object.

$depth

Depth of page, used for padding.

$args

An array of arguments.

$current_page

ID of the current page.

Source Source

File: wp-includes/class-walker-page.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

See also See also

Advertisement

Leave a Reply