Heya Sam,
Since you came up with the following function, I think you can help me answer a question about it.
The function:
add_action( 'bb_admin_menu_generator', 'myplugin_add_admin_page' );
function myplugin_add_admin_page() {
bb_admin_add_menu(__('My plugin'), 'use_keys', 'myplugin');
bb_admin_add_submenu(__('My plugin sub menu item one'), 'use_keys', 'myplugin', 'myplugin');
bb_admin_add_submenu(__('My plugin sub menu item two'), 'use_keys', 'myplugin_two', 'myplugin');
}
This works, it will add 2 submenu's to my new menu, but how to show up things like forms under each tab?
Let's say I have submenu tab1 and tab2. Under tab1 I want to show form X and use some functions. Under tab2 I want to show form Z and again have some functions their to use the form etc. But how do I declare where it will show what? How do I get stuff under tab1 and how under tab2?
Do you understand what I mean? Can you give me an excample too?
Many thanks
ps. anyone can answer ofcourse :)