diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php index e3053e5..c4c80aa 100644 --- a/mu-plugins/carhop-post-types.php +++ b/mu-plugins/carhop-post-types.php @@ -230,3 +230,12 @@ function carhop_create_posttype() ); } add_action('init', 'carhop_create_posttype'); + + +//hide defaukt post type from admin menu +function carhop_hide_default_post_type() +{ + remove_menu_page('edit.php'); + remove_menu_page('edit-comments.php'); +} +add_action('admin_menu', 'carhop_hide_default_post_type');