How to remove shipment history section on track result

Add the following codes in your theme’s functions.php file

add_filter( 'wp_head', 'remove_history_track_result' );
function remove_history_track_result(){
	if(isset( $_REQUEST['wpcargo_tracking_number'] )){
		remove_action('wpcargo_after_track_details', 'wpcargo_track_shipment_history_details', 10, 1);
	}
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop