Created
January 30, 2018 12:38
-
-
Save hauge75/15c6f068ac33ac6f432abcf65a6c240b to your computer and use it in GitHub Desktop.
Woocoomerce if in stock
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
global $product; | |
if ($product->is_in_stock()) { | |
//Do if product is in stock | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment