widget_nav_menu_args

widget_nav_menu_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('widget_nav_menu_args') is found 1 times:

  • /wp-includes/widgets/class-wp-nav-menu-widget.php line 109
    		 * @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.
    		 */
    		wp_nav_menu( apply_filters( 'widget_nav_menu_args', $nav_menu_args, $nav_menu, $args, $instance ) );
    
    		echo $args['after_widget'];
    	}
    
    	/**
    	 * Handles updating settings for the current Navigation Menu widget instance.