WPSlash Licences

Adding Tracking Code Shortcode from WPSlash Voucher to WooSMS

Adding Tracking Code Shortcode from WPSlash Voucher to WooSMS – code snippet guide from WPSlash
Published
Updated
Reading time
1 minutes
Written by
WPSlash team

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

Code
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!

All guides

The plugins these guides are about

FoodMaster for restaurants, courier vouchers for the Greek market, marketplace sync and store tools, all for WooCommerce.

Browse plugins30-day money-back on every plugin