wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



widget_nav_menu_args › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance )
Parameter: (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. }
    Erforderlich: Ja
  • (WP_Term) $nav_menu Nav menu object for the current menu.
    Erforderlich: Ja
  • (array) $args Display arguments for the current widget.
    Erforderlich: Ja
  • (array) $instance Array of settings for the current widget.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the arguments for the Navigation Menu widget.





Quellcode

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