Un motore di ricerca WordPress per sviluppatori e autori di temi



widget_nav_menu_args ›

Da4.4.0
Deprecaton/a
apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance )
Parametri: (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. }
    Richiesto:
  • (WP_Term) $nav_menu Nav menu object for the current menu.
    Richiesto:
  • (array) $args Display arguments for the current widget.
    Richiesto:
  • (array) $instance Array of settings for the current widget.
    Richiesto:
Definito a:
Codex:

Filters the arguments for the Navigation Menu widget.





Sorgenti

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