Uma área de pesquisa sobre o WordPress para devs e autores do tema



page_css_class ›

Desde2.8.0
Obsoleton/a
apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page )
Parâmetros: (5)
  • (string[]) $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
Ver:
  • wp_list_pages()
Definido em:
Codex:

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





Fonte

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