Created
January 18, 2017 09:13
-
-
Save ahmedeshaan/41c4dd400aa54ffd8bc76c8b6629c40d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <?php | |
| add_filter('woocommerce_get_availability', 'availability_filter_func'); | |
| function availability_filter_func($availability) | |
| { | |
| $availability['availability'] = str_ireplace('Out of stock', 'Available soon', $availability['availability']); | |
| return $availability; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment