W3cubDocs

/WordPress

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

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

Description

See also

Parameters

$css_class

(string[]) An array of CSS classes to be applied to each list item.

$page

(WP_Post) Page data object.

$depth

(int) Depth of page, used for padding.

$args

(array) An array of arguments.

$current_page

(int) ID of the current page.

Source

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

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/page_css_class