FEATURE Hide default post types from admin menu
This commit is contained in:
parent
bfc6241a1a
commit
3c93f01b72
|
|
@ -230,3 +230,12 @@ function carhop_create_posttype()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
add_action('init', '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');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user