wpc_after_shipment_details_metabox

“wpc_after_shipment_details_metabox” is an action that allows you to add custom fields in the receiver details section.

Copy and paste the following code in your current theme’s function.php

function mycustom_shipment_details_meta( $post_ID ){ ?>
    <tr>
    <th><label>
        <?php esc_html_e('Custom Field','wpcargo'); ?>
      </label></th>
    <td><input type="text" id="wpcargo_custom_field" name="wpcargo_custom_field" value="<?php echo esc_html( get_post_meta($post_ID, 'wpcargo_custom_field', true) ); ?>"size="25" /></td>
  </tr>
  <tr>
<?php
}

add_action( 'wpc_after_shipment_details_metabox', 'mycustom_shipment_details_meta', 99 );

Screenshot:

4
    4
    Your Cart
    Remove
    WPCargo Advance Package
    2 X $349.00 = $698.00
    Remove
    WPCargo Parcel Quotation Package
    1 X $333.90 = $333.90
    Remove
    Remove
    WPCargo Shipment Rate
    1 X $79.00 = $79.00