Un motore di ricerca WordPress per sviluppatori e autori di temi



page_menu_link_attributes ›

Da4.8.0
Deprecaton/a
apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page )
Parametri: (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. }
    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:
Definito a:
Codex:

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





Sorgenti

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