Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* --------------------------------- */
- /* Only works with WooCommerce 2.x.x */
- /* --------------------------------- */
- /*
- Place the following code inside your theme's functions.php
- */
- add_filter('woocommerce_get_availability','custom_out_of_stock',10);
- function custom_out_of_stock($availability){
- $new_outta_stock = "Your custom text goes here!";
- $availability['availability']= $new_outta_stock;
- return $availability;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement