before_wpcargo_shipment_history

“before_wpcargo_shipment_history” action hooks allows you to add additional shipment information before the shipment history section.

Note: use “after_wpcargo_shipment_history” to display the data after the shipment history.

Copy and paste the following code to test how the action hook works.


function my_custom_data(){
	?>
    <div class="my-4">
        <h2>My Custom Data</h2>
        <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>
        <p>Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.</p>
    </div>
    <?php
}
add_action('before_wpcargo_shipment_history', 'my_custom_data');

0
    0
    Your Cart
    Your cart is emptyReturn to Shop