apply_filters( ‘page_css_class’, string[] $css_class, WP_Post $page, int $depth, array $args, int $current_page_id )

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

Description

See also

Parameters

$css_classstring[]
An array of CSS classes to be applied to each list item.
$pageWP_Post
Page data object.
$depthint
Depth of page, used for padding.
$argsarray
An array of arguments.
$current_page_idint
ID of the current page.

Source

$css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id ) );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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