How to change Insurance Label in Rate Result

Note: please put this code in functions.php of your current theme.

function custom_wpcsr_including_insurance_label_callback(){
  // Change the "Including Insurance" label
  $label = 'Change Including Insurance Label here';
  return $label;
}
add_filter( 'wpcsr_including_insurance_label', 'custom_wpcsr_including_insurance_label_callback' );

function custom_wpcsr_without_insurance_label_callback(){
  // Change the "Without Insurance" label
  $label = 'Change Without Insurance Label here';
  return $label;
}
add_filter( 'wpcsr_without_insurance_label', 'custom_wpcsr_without_insurance_label_callback' );
  
2
    2
    Your Cart
    Remove
    WPCargo Shipment Rate
    1 X $79.00 = $79.00
    Remove
    WPCargo Shipping Rate Package
    2 X $340.90 = $681.80