But is there any way to save the changes for all sites except the main site.
No, or at least not without a lot of work. Given the way that the plugin is implement right now, you have two options: a) same menus on all sites or b) a different menu on every site. When using a global menu configuration (i.e. option A), there’s a single database entry that is used by all of the sites. No exceptions.
You could switch to using per-site menus, but then you would have a different problem: you’d have to make your changes on every individual site. With a per-site configuration, there’s no bulk update.
Is there some reason why you have to edit the menu on the main site specifically? You could just do it on another site, and, with the code I posted, your changes would show up on all sites except the main one.
Your code only stops from loading the menu for it right.
This is correct.
-
This reply was modified 7 years, 7 months ago by Janis Elsts. Reason: Adjust formatting