the function is called. i have checked it – i create a file in the function with file_put_contents – the file is created. so the function is called.
function bbnuke_plugin_add_option_page()
{
$bbnuke_admin_page =
add_menu_page ( 'baseballNuke Plugin Options', 'baseballNuke', 8, 'bbnuke-option-page', 'bbnuke_plugin_create_option_page', BBNPURL . 'images/baseballNuke_16x16.gif');
add_submenu_page( 'bbnuke-option-page', 'Players', 'Players', 8, 'bbnuke-players', 'bbnuke_plugin_create_players_page');
add_submenu_page( 'bbnuke-option-page', 'Fields', 'Fields', 5, 'bbnuke-fields', 'bbnuke_plugin_create_fields_page');
add_submenu_page( 'bbnuke-option-page', 'Schedule', 'Schedule', 5, 'bbnuke-schedule', 'bbnuke_plugin_create_schedules_page');
add_submenu_page( 'bbnuke-option-page', 'Tournaments', 'Tournaments', 5, 'bbnuke-tournaments', 'bbnuke_plugin_create_tournaments_page');
add_submenu_page( 'bbnuke-option-page', 'Practices', 'Practices', 5, 'bbnuke-practice', 'bbnuke_plugin_create_practice_page');
add_submenu_page( 'bbnuke-option-page', 'Game Results', 'Game Results', 5, 'bbnuke-game-results', 'bbnuke_plugin_create_game_results_page');
add_submenu_page( 'bbnuke-option-page', 'Uninstsll', 'Uninstall', 5, 'bbnuke-uninstall', 'bbnuke_plugin_uninstall');
add_action( 'admin_print_scripts-' . $bbnuke_admin_page, 'bbnuke_admin_head' );
return;
}
function bbnuke_admin_head()
{
wp_enqueue_style( 'bbnuke_admin_styles' );
}
function bbnuke_admin_init_method()
{
wp_register_style('bbnuke_admin_styles', BBNPURL . 'css/bbnuke-admin-plugin.css');
}
add_action( 'admin_init', 'bbnuke_admin_init_method');