/**
* Remove Shipping rate submenus
*/
function wpdocs_remove_menus(){
// Remove Shipping Rate Zone
remove_submenu_page( 'wpcsr-rate', 'wpcsr-zone' );
// Remove Shipping Rate zone
remove_submenu_page( 'wpcsr-rate', 'wpcsr-location' );
// Remove Shipping Rate zone
remove_submenu_page( 'wpcsr-rate', 'wpcsr-delivery' );
// Remove Shipping Rate zone
remove_submenu_page( 'wpcsr-rate', 'wpcsr-user-group' );
// Remove Shipping Rate zone
remove_submenu_page( 'wpcsr-rate', 'wpcsr-user-group' );
}
add_action( 'admin_menu', 'wpdocs_remove_menus', 9999 );