ubermenu_submenu_type

Control the Submenu Type programmatically.

Use caution and be precise when using this filter as it allows you to override UberMenu’s internal submenu type determination. It is powerful but be careful not to break things.

Valid submenu type values

mega
flyout
stack
tabs-group
tab-content-panel

Example

/* Force all top level item submenu types to flyout */
add_filter( 'ubermenu_submenu_type', 'um_submenu_type', 10, 4 );
function um_submenu_type( $submenu_type, $item, $depth, $args ){
	if( $depth === 0 ){
    	    	$submenu_type = 'flyout';
	}
    return $submenu_type;
}

On this page