wpcargo_before_track_details
“wpcargo_before_track_details” hook is used to add additional information at the top of the track result information. Note: It accepts 1 parameter for shipment information.
Copy and paste the following code in the theme functions.php file.
1 2 3 4 5 6 7 8 9 10 11 | function my_custom_before_track_details( $shipment ){ ?> <section class = "wpcargo-col-md-12" style= "text-align:center;" > <h3 class = "section-title wpccf_section_header" >Disclaimer</h3> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. </p> </section> <?php } add_action( 'wpcargo_before_track_details' , 'my_custom_before_track_details' ); |