Un motore di ricerca WordPress per sviluppatori e autori di temi



page_css_class ›

Da2.8.0
Deprecaton/a
apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page )
Parametri: (5)
  • (string[]) $css_class An array of CSS classes to be applied to each list item.
    Richiesto:
  • (WP_Post) $page Page data object.
    Richiesto:
  • (int) $depth Depth of page, used for padding.
    Richiesto:
  • (array) $args An array of arguments.
    Richiesto:
  • (int) $current_page ID of the current page.
    Richiesto:
Vedi:
  • wp_list_pages()
Definito a:
Codex:

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





Sorgenti

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