PHP SCRIPT to change WooCommerce Variable Product Button Text
Whew! That is long H2 heading, but it does accurately describe what we are going to do here.
It’s time to play with WordPress plugins and add a plugin MY CUSTOM FUNCTION to add a little piece of PHP code to over-ride the default WooCommerce text on the SELECT OPTIONS button for variable products.
You can copy/paste the code from the original blog entry here
Custom PHP Script
Let’s dive in:
PHP Code Checker – PHP Code Checker – Syntax Check for Common PHP Mistakes
UPDATE DEC 31st 2020:
Since recoreding this I found a much easier way of doing it with the WooCommerce Customizer plugin.