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_id
int- ID of the current page.
Source
$css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id ) );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.