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



page_menu_link_attributes › WordPress Filter Hooks

Seit4.8.0
Veraltetn/v
› apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id )
Parameter: (5)
  • () 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
  • () 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
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_id );