Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.