wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



page_css_class › WordPress Filter Hooks

Seit2.8.0
Veraltetn/v
› apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id )
Parameter: (5)
  • () css_class An array of CSS classes to be applied to each list item.
    Erforderlich: Ja
  • () page Page data object.
    Erforderlich: Ja
  • () depth Depth of page, used for padding.
    Erforderlich: Ja
  • () args An array of arguments.
    Erforderlich: Ja
  • () current_page_id ID of the current page.
    Erforderlich: Ja
Siehe:
  • wp_list_pages()
Definiert in:
Codex:

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





Quellcode

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