This is probably a dumb question. I have the following code to add a menu to the back end, which works fine.
/************************************************************************************************************************************************************
* This portion Adds Admin Menu Items for the plugin
/***********************************************************************************************************************************************************/
function cmc_messagesystem_admin_menu_option() {
add_menu_page(‘CMC Messaging System Options’, ‘CMC Messaging System Options’, ‘manage_options’, ‘cmc_messagesystem_admin_menu’, ‘cmc_messagesystem_scripts_page’, ”, 200);
add_submenu_page(‘cmc_messagesystem_admin_menu’, ‘Add/Edit/Delete Main Topic’, ‘Add/Edit/Delete Main Topic’, ‘manage_options’, ‘cmc_messagesystem_add_main_topic’, ‘cmc_messagesystem_add_main_topic_script’);
}
add_action(‘admin_menu’, ‘cmc_messagesystem_admin_menu_option’);
What I want to do is hide the “CMC Messaging System Options” form the drop-down menu. It should only show in the admin menu. Any help is greatly appreciated.
[ad_2]