wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



page_menu_link_attributes › Hooks de Filtros WordPress

Desde4.8.0
Obsoleton/a
› apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id )
Parâmetros: (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. }
    Required: Yes
  • () page Page data object.
    Required: Yes
  • () depth Depth of page, used for padding.
    Required: Yes
  • () args An array of arguments.
    Required: Yes
  • () current_page_id ID of the current page.
    Required: Yes
Definido em:
Codex:

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





Fonte

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