Docly Child

Replace texts from tracking events

This code snippet can be used to replace specific text in the tracking event description shown on the Shipment Progress tab on the tracking widget and is useful for store owners who may want to hide certain information, such as the location of origin, from their customers.

Before using the below code snippet

Code Snippet

After using the above code snippet

Instructions

  • To replace multiple words, add additional elements to both the $find and $replace arrays.
  • To use this code snippet in WordPress, you can add it to your theme’s functions.php file or use a plugin such as Code Snippets to add it to your site.
  • Make sure you have the TrackShip plugin for WooCommerce installed and activated on your site before using this code snippet.

Note: It is recommended to create a backup of your website before making any modifications to your code.

Download Now

CONTENTS