WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about widget_nav_menu_args

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/widgets/class-wp-nav-menu-widget.php apply_filters 109 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
array $nav_menu_arg s {
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.