Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding a plugin admin page into the admin menu


thierryyyyyyy
Participant

@thierryyyyyyy

in the admin-functions.php, there is the function which creates the main menu (and also submenu) : bb_admin_menu_generator()

at the end of the function, you have a “hook” that you can use :

do_action(‘bb_admin_menu_generator’,”);

I tried this code :

add_action('bb_admin_menu_generator', 'bbai_add_options');

function bbai_add_options(){
$bb_menu[20] = array(__('Options'), 'use_keys', 'my_options_page.php');
}

but didn’t worked :(

Skip to toolbar