I installed a plugin that has a custom post type, that looks like the picture below:
WhatI's like to do is hide the "Pictures" link in this menu. It's a custom post type. The link looks like: edit.php?post_type=cbs_pictures
I tried:
function plt_hide_custom_post_type_ui_menus() {
remove_submenu_page('menu-posts-cbs_booking', 'edit.php?post_type=cbs_pictures');
}
add_action('admin_menu', 'plt_hide_custom_post_type_ui_menus', 11);
I also tried:
function your_custom__remove_menu_items() {
remove_menu_page( 'edit.php?post_type=cbs_pictures' );
}
add_action( 'admin_menu', 'your_custom_remove_menu_items' );
but neither of these snippets worked...the "Pictures" link still shows.
Anyone know how this could be hidden? I would like to still be able to use the url to access the page, I would just like the "Pictures" menu item to be hidden. Any ideas?
Thanks,
Josh