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



widget_nav_menu_args ›

Desde4.4.0
Obsoleton/a
apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance )
Parâmetros: (4)
  • (array) $nav_menu_args { An array of arguments passed to wp_nav_menu() to retrieve a navigation menu. @type callable|bool $fallback_cb Callback to fire if the menu doesn't exist. Default empty. @type mixed $menu Menu ID, slug, or name. }
    Required: Yes
  • (WP_Term) $nav_menu Nav menu object for the current menu.
    Required: Yes
  • (array) $args Display arguments for the current widget.
    Required: Yes
  • (array) $instance Array of settings for the current widget.
    Required: Yes
Definido em:
Codex:

Filters the arguments for the Navigation Menu widget.





Fonte

wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance ) );