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



page_menu_link_attributes ›

Seit4.8.0
Veraltetn/v
apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page )
Parameter: (5)
  • (array) $atts { The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored. @type string $href The href attribute. @type string $aria_current The aria-current attribute. }
    Erforderlich: Ja
  • (WP_Post) $page Page data object.
    Erforderlich: Ja
  • (int) $depth Depth of page, used for padding.
    Erforderlich: Ja
  • (array) $args An array of arguments.
    Erforderlich: Ja
  • (int) $current_page ID of the current page.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the HTML attributes applied to a page menu item's anchor element.





Quellcode

$atts = apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page );