wpcargo_before_shipment_details

“wpcargo_before_shipment_details” hook is used to add additional information after the current status section in the tracking result. Note: It accepts 1 parameter for shipment information.

Copy and paste this sample code in the theme functions.php file.

function mycustom_track_shipment_status_result( $shimpment_details ){
	//	$shipment_status = esc_html( get_post_meta( $shimpment_details->ID, 'wpcargo_status', true ) );
		?>
		<div id="shipment-status" class="wpcargo-row" style="text-align:center;">
			<p id="result-status-header"><?php echo apply_filters( 'wpcargo_track_shipment_status_result_title', esc_html__( 'Custom Section ', 'wpcargo' ) ); ?></p>
		</div>
		<?php
}
add_action( 'wpcargo_before_shipment_details', 'mycustom_track_shipment_status_result', 20, 1 );

Screenshot:

0
    0
    Your Cart
    Your cart is emptyReturn to Shop