Incompatible with multilingualpress
-
Hello,
I have multi site set-up for my website and i’m using multilingual press and max mega menu both.
When i add widget in mega menu then menu disappears. I tried finding the solution and almost found something.In megamenu.php
Change
add_filter( 'wp_nav_menu_objects', array( $this, 'add_widgets_to_menu' ), apply_filters( 'megamenu_wp_nav_menu_objects_priority', 10 ), 2 );
to
add_filter( 'wp_nav_menu_objects', array( $this, 'add_widgets_to_menu' ),PHP_INT_MAX, 2 );
Then it works but using filter hook i’m unable to change priority without making change in plugin.
I’m trying
add_filter('megamenu_wp_nav_menu_objects_priority',function (){ return PHP_INT_MAX; });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Incompatible with multilingualpress’ is closed to new replies.