Learn how to set up, customize, and expand the functionality of your WooCommerce products with our library of documentation and tutorials.

General Snippets


Documents

  • Rename a country in WooCommerce

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. This file contains bidirectional Unicode text that […]

  • Send coupons used in an order by email

    This snippet sends by email the list of coupons used in an order. You can customize the “$to” variable and define your own email address, and the “$message” to have your own text. Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as […]

  • States/counties (not in core)

    To add or modify your own states, please use the snippet at: Add/Modify States. United Kingdom WooCommerce UK Counties Plugin by Lee Willis on GitHub

  • Unhook/remove WooCommerce Emails

    This code allows you to unhook and remove the default WooCommerce emails. Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely […]

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.