Skip to content

Instantly share code, notes, and snippets.

@dannyconnolly
Created January 23, 2014 09:04
Show Gist options
  • Save dannyconnolly/8575328 to your computer and use it in GitHub Desktop.
Save dannyconnolly/8575328 to your computer and use it in GitHub Desktop.
Hide plugin menu items from menu
function my_remove_menu_pages() {
remove_menu_page('plugin_slug');
remove_menu_page('plugin_slug');
}
add_action( 'admin_menu', 'my_remove_menu_pages' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment