WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about page_css_class

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-walker-page.php apply_filters 158 /**
* Filters the list of CSS classes to include with each page item in the list.
*
* @since 2.8.0
*
* @see wp_list_pages()
*
* @param string[] $css_class An array of CSS classes to be applied to each list item.
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
* @param array $args An array of arguments.
* @param int $current_page_id ID of the current page.
*/

Hook Parameters

Parameter Type Name Description
string[] $css_class An array of CSS classes to be applied to each list item.
WP_Post $page Page data object.
int $depth Depth of page, used for padding.
array $args An array of arguments.
int $current_page_id ID of the current page.