WPSlash

Adding Tracking Code Shortcode from WPSlash Voucher to WooSMS

Wednesday January 8, 2020

Here is a small snippet you can copy and paste to your child theme to add a shortcode <wpslash_voucher_courier_tracking> to WooSMS .

add_action('woosms_extends_variables', 'wpslash_add_tracking_variable_to_woosms', 10, 2);

function wpslash_add_tracking_variable_to_woosms($variables, $database)
{
  $variables->set('wpslash_voucher_courier_tracking', $row->wpslash_voucher_courier_tracking);

}

Note: If for any reason you cannot add it to yourself , feel free to open a ticket and we will take of adding this code to your child theme!

Leave a Comment

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

Related Articles

Tutorials

How to Set Up Automated Backup and Disaster Recovery for Your WooCommerce Restaurant Website: Protect Orders, Menus, and Customer Data from Crashes, Hacks, and Human Error (Complete Guide)

Why Restaurant Websites Need a Bulletproof Backup Strategy Picture this: it’s 6:30 PM on a Friday, your busiest night of the week. Orders are pouring in through your WooCommerce restaurant site, the kitchen is humming, and then — nothing. Your website goes dark. Maybe a plugin update went sideways. Maybe your hosting provider had a […]
April 7, 2026
Tutorials

How to Build a Customer Loyalty and Rewards Program for Your WooCommerce Restaurant: Points, Punch Cards, and VIP Tiers to Drive Repeat Orders (Complete Guide)

Why Restaurant Loyalty Programs Matter for Online Ordering A customer places their first order through your restaurant’s website. The food arrives hot, the experience is seamless, and they’re satisfied. But will they come back? Without a deliberate strategy to encourage repeat visits, there’s a strong chance they’ll drift to a competitor or default back to […]
April 7, 2026
Tutorials

How to Secure Your WooCommerce Restaurant Website: Protect Customer Payment Data, Prevent Hacking, and Set Up SSL, Firewalls, and PCI Compliance (Complete Guide)

Why Restaurant Website Security Matters More Than You Think A single data breach can shut down a restaurant faster than a failed health inspection. That’s not hyperbole — when a small restaurant loses customer credit card data, the average cost of remediation, fines, and lost business can reach tens of thousands of dollars. For an […]
April 7, 2026