How to remove Delivery Method in Booking

function custom_remove_delivery_method(){
  /*
     * WPCargo Roles
     *
     * wpcargo_client
     * wpcargo_pending_client
     * wpcargo_employee
     * cargo_agent
     */
     
    /*
     * Remove the Delivery Method for WPCargo Client only
     */
    $current_user = wp_get_current_user();
    if( in_array( 'wpcargo_client', $current_user->roles ) ){          
        remove_action( 'wpcsr_after_shipment_info', 'pickup_rate_section_callback', 10, 1 );              
    } 
}
add_action( 'init', 'custom_remove_delivery_method' );
0
    0
    Your Cart
    Your cart is emptyReturn to Shop