Last active
November 11, 2022 09:03
-
-
Save takunagai/428700856fdbe8a078c7eaad50602af4 to your computer and use it in GitHub Desktop.
[mega menu support for menu-4 & menu-5] #WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Support menu-4, menu-5 on MegaMenu. | |
* Default: Only Support primary, secondary, menu-3 menus | |
*/ | |
add_filter( 'astra_nav_mega_menu_support', 'custom_megamenu_support', 10, 1 ); | |
function custom_megamenu_support( $nav_menus ) { | |
$nav_menus[] = 'menu_3'; | |
$nav_menus[] = 'menu_4'; | |
return $nav_menus; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment