How to create your own result template

[vc_row][vc_column][vc_row_inner][vc_column_inner width=”1/4″][vc_widget_sidebar sidebar_id=”sidebar_3″][/vc_column_inner][vc_column_inner width=”3/4″][vc_column_text]

How to create your own result template

WPCargo has already have a hooks that are very useful for developers.

There are two types of Hooks, the filters and actions
For more info about hooks please visit the WordPress Codex

 

On WPCargo Custom Field there is a file name “wpc-cf-hooks.php” you can see it on wpcargo-custom-field-addons/classes/wpc-cf-hooks.php

There is a action hook called wpcargo_track_shipper_details and wpcargo_track_shipment_details
wpcargo_track_shipper_details
is the shipper and receiver details on results and wpcargo_track_shipment_details is the shipment details on results. We can remove it by using remove_action
[/vc_column_text][vc_raw_js]JTNDc2NyaXB0JTIwc3JjJTNEJTIyaHR0cHMlM0ElMkYlMkZnaXN0LmdpdGh1Yi5jb20lMkZ2aXJ0dW9zb21hc3RlciUyRmNlZTYxNmFjNmVmMDVlOTk5Nzc3Mzk2N2JhNzIzZGMxLmpzJTIyJTNFJTNDJTJGc2NyaXB0JTNF[/vc_raw_js][vc_column_text]After removing the hooks, you can now add the function for your results and make sure to put it on your theme function file.
You can view other wpcargo meta_key on you admin dashboard > WPCargo > Manage Form Fields[/vc_column_text][vc_raw_html]JTNDc2NyaXB0JTIwYXN5bmMlMjBzcmMlM0QlMjIlMkYlMkZwYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbSUyRnBhZ2VhZCUyRmpzJTJGYWRzYnlnb29nbGUuanMlMjIlM0UlM0MlMkZzY3JpcHQlM0UlMEElM0NpbnMlMjBjbGFzcyUzRCUyMmFkc2J5Z29vZ2xlJTIyJTBBJTIwJTIwJTIwJTIwJTIwc3R5bGUlM0QlMjJkaXNwbGF5JTNBYmxvY2slM0IlMjB0ZXh0LWFsaWduJTNBY2VudGVyJTNCJTIyJTBBJTIwJTIwJTIwJTIwJTIwZGF0YS1hZC1sYXlvdXQlM0QlMjJpbi1hcnRpY2xlJTIyJTBBJTIwJTIwJTIwJTIwJTIwZGF0YS1hZC1mb3JtYXQlM0QlMjJmbHVpZCUyMiUwQSUyMCUyMCUyMCUyMCUyMGRhdGEtYWQtY2xpZW50JTNEJTIyY2EtcHViLTA1MDY1Mzg0MjY0NTY4NzclMjIlMEElMjAlMjAlMjAlMjAlMjBkYXRhLWFkLXNsb3QlM0QlMjIxNjk0OTc1MjIyJTIyJTNFJTNDJTJGaW5zJTNFJTBBJTNDc2NyaXB0JTNFJTBBJTIwJTIwJTIwJTIwJTIwJTI4YWRzYnlnb29nbGUlMjAlM0QlMjB3aW5kb3cuYWRzYnlnb29nbGUlMjAlN0MlN0MlMjAlNUIlNUQlMjkucHVzaCUyOCU3QiU3RCUyOSUzQiUwQSUzQyUyRnNjcmlwdCUzRQ==[/vc_raw_html][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.