wpcargo_track_shipper_details
“wpcargo_track_shipper_details” hook is used to add additional information after the Shipper section track result site information information. Note: It accepts 1 parameter for shipment information.
Copy and paste this sample code in the theme functions.php file.
function mycustom_function( $shipment ){?> <div class="wpcargo-col-md-12 detail-section"> <p id="custom-header" class="header-title"><strong><?php echo apply_filters('result_shipper_address', esc_html__('My Custom Track Section', 'wpcargo')); ?></strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <?php } add_action('wpcargo_track_shipper_details', 'mycustom_function', 20, 1);