How to Change Section Label – WPCargo Track Results

Available Filters

  • result_shipper_address – this is filter hook used to change the Shipper Information label
  • result_receiver_address – this is filter hook used to change the Receiver Information label
  • result_shipment_information – this is filter hook used to change the Shipment Information label
  • wpcargo_track_shipment_status_result_title – this is filter hook used to change the Shipment Status title
Change Shipper Information Label

Copy and paste the following code into the functions.php of your current theme

function shipper_information_label(){
    return esc_html__('Shipper Information', 'wpcargo');
}

add_filter( 'result_shipper_address', 'shipper_information_label' );
Change Receiver Information Label

Copy and paste the following code into the functions.php of your current theme

function receiver_information_label(){
    return esc_html__('Receiver', 'wpcargo');
}

add_filter( 'result_receiver_address', 'receiver_information_label' );
Change Shipment Information Label

Copy and paste the following code into the functions.php of your current theme

function shipment_information_section_label(){
    return esc_html__('Package Information', 'wpcargo');
}

add_filter( 'result_shipment_information', 'shipment_information_section_label' );
Change Shipment Status Title

Copy and paste the following code into the functions.php of your current theme

function parcel_custom_status_title(){
    return esc_html__('Parcel Status: ', 'wpcargo');
}

add_filter( 'wpcargo_track_shipment_status_result_title', 'parcel_custom_status_title' );