How does bbPress handel: double variables?
I am in the proces of making a nice menu plugin. It has al the features like drag & drop etc etc. This works great. Now I want pluginbuilders, who have made a plugin and use a new page like the memberlist plugin, to be able to easy add their page to the menu.
I would like to do something like this (dont mind the wrong syntaces, its for some easy explaining):
In my menu.php plugin page I’ve added something like:
function get_menu_pages ()
select $menu_titel, $menu_page from bb_menu where blablabla
I need 2 variables now: $menu_titel and $menu_page
A new plugin adds in its plugin page these variables:
Excample: memberlist plugin
$menu_titel = Memberlist
$menu_page = memberlist.php
This works, no problem so far, but what happens if in another plugin page is added:
Excample: FAQ plugin
$menu_titel = FAQ
$menu_page = faq.php
How will function get_menu_pages () react? Will it only get the first variable from the memberlist plugin, or will it get both, or will it simply crash. Is this even possible at all?
The reason I want to do it this way, is that plugin builders can easily add their page to my menu plugin by simply filling in the $menu_titel and $menu_page variables on their own plugin page.
Hope this makes any sence and if this doesn’t work, what solutions are there for this?
You must be logged in to reply to this topic.