Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Last active June 1, 2017 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmarchand/c14b7742ef4e8b1d9e71763f2b7bbcbf to your computer and use it in GitHub Desktop.
Save jpmarchand/c14b7742ef4e8b1d9e71763f2b7bbcbf to your computer and use it in GitHub Desktop.
Remove default post type from WordPress Dashboard Screen. Source: https://www.techjunkie.com/remove-default-post-type-from-admin-menu-wordpress/
<?php
//* Remove default post type from WordPress Dashboard
add_action('admin_menu','customprefix_remove_default_post_type_menu_item');
function customprefix_remove_default_post_type_menu_item() {
remove_menu_page('edit.php');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment