All the plugins are using a hard coded if statement checking for each other right now. It's getting unmanageable as the number of plugins grow.
There must be some way to just check for a top level menu existing.
Main Topics
Browse All TopicsI have more than one plugin developed by the same company.
Since all the plugins need to share the same top level menu (a top level of their own, not one of the pre-existing wordpress menus), I need to check for a main page being added and know if this main menu has already been added by one of the several plugins by this company.
See if I can explain more clearly with an example:
I have plugin 1, plugin 2, and plugin 3. This particular user is only using plugin 1 and 3. Plugin 1 will load first - checking and seeing that the main menu is not there, it will add it. When plugin 3 loads, I need it to first check - is that main menu already added? If yes, then just add your submenus to it, if not, add the main menu.
Make sense? I just need to figure out the way to do this "check" that I can use in all the plugins. With one common way to check for the main menu being there - only one of them would add it and all would list their submenus under it.
Thanks for any help on this. I'm sure there is some variable that can be read to make this work, it's just not jumping out at me.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: yfastudPosted on 2009-11-05 at 17:13:13ID: 25755902
it would be more helpful if you could post the link to those plug-in so we can check and have some suggestions for you