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 Description

See also See also

Top ↑

Parameters Parameters


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


(WP_Post) Page data object.


(int) Depth of page, used for padding.


(array) An array of arguments.


(int) ID of the current page.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.