Code Element Hp

Hide ‘Post’ Post Type in WordPress Admin

You can hide the default WordPress Posts post type using the native admin_menu action hook.

/**
 * Hide Posts in Admin
 */
add_action('admin_menu', function () {
   remove_menu_page('edit.php');
});