A WordPress-centric search engine for devs and theme authors



page_css_class ›

Since2.8.0
Deprecatedn/a
apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page )
Parameters: (5)
  • (array) $css_class An array of CSS classes to be applied to each list item.
    Required: Yes
  • (WP_Post) $page Page data object.
    Required: Yes
  • (int) $depth Depth of page, used for padding.
    Required: Yes
  • (array) $args An array of arguments.
    Required: Yes
  • (int) $current_page ID of the current page.
    Required: Yes
See:
  • wp_list_pages()
Defined at:
Codex:

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





Source

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