Last active
January 26, 2019 03:32
-
-
Save tuanbbhero/90b29f534d9574fdf31c94a15052c330 to your computer and use it in GitHub Desktop.
Change Out of Stock Text in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_get_availability', 'availability_filter_func'); | |
function availability_filter_func($availability) | |
{ | |
$availability['availability'] = str_ireplace('Out of stock', 'Tuan Phan!', $availability['availability']); | |
return $availability; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment