Description
Filters the arguments for the Navigation Menu widget. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/widgets/class-wp-nav-menu-widget.php | 109 |
Parameters
Type | Name | Description |
---|---|---|
array | $nav_menu_args | { An array of arguments passed to wp_nav_menu() to retrieve a navigation menu. |
WP_Term | $nav_menu | Nav menu object for the current menu. |
array | $args | Display arguments for the current widget. |
array | $instance | Array of settings for the current widget. |
PHP Doc
/**
* Filters the arguments for the Navigation Menu widget.
*
* @since 4.2.0
* @since 4.4.0 Added the `$instance` parameter.
*
* @param 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.
* }
* @param WP_Term $nav_menu Nav menu object for the current menu.
* @param array $args Display arguments for the current widget.
* @param array $instance Array of settings for the current widget.
*/