Hide drop down on admin menu

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer