wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



page_menu_link_attributes › Les Filtres WordPress

Depuis4.8.0
Dépréciéen/a
› apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id )
Paramètres: (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. }
    Requis: Oui
  • () page Page data object.
    Requis: Oui
  • () depth Depth of page, used for padding.
    Requis: Oui
  • () args An array of arguments.
    Requis: Oui
  • () current_page_id ID of the current page.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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