add_action() issue in custom plugin
-
I have made a small plugin and all works fine on my localhost dev machine
When I upload to me live site the admin menu is not shown, it is ok on my localhost
I have tried to change theme just in case it is something to do with that
My code is
function fm2017_setup_menu(){ add_menu_page( 'Fishing Manager 2017 Plugin Page', 'Fishing Manager 2017', 'manage_options', 'Fishing-Manager-2017', 'fm2017_init' ); add_submenu_page("Fishing-Manager-2017", "Manage Venues", "Manage Venues", 0, "Manage-Venues", "fm2017_addvenue"); add_submenu_page("Fishing-Manager-2017", "Manage Anglers", "Manage Anglers", 0, "Manage-Anglers", "fm2017_addang"); add_submenu_page("Fishing-Manager-2017", "Record Scores", "Record Scores", 0, "Record-Scores", "fm2017_record"); } add_action('admin_menu', 'fm2017_setup_menu');
Any help or advice is appreciated
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘add_action() issue in custom plugin’ is closed to new replies.