wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



page_menu_link_attributes › WordPress Filter Hooks

Da4.8.0
Deprecaton/a
› apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id )
Parametri: (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. }
    Richiesto: Sì
  • () page Page data object.
    Richiesto: Sì
  • () depth Depth of page, used for padding.
    Richiesto: Sì
  • () args An array of arguments.
    Richiesto: Sì
  • () current_page_id ID of the current page.
    Richiesto: Sì
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_id );