Created
September 23, 2020 18:50
-
-
Save jondcampbell/ae96a9c20d3d93838c562e452b00986d to your computer and use it in GitHub Desktop.
low stock notification change
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
/** | |
* Determine if the current product should trigger a low stock notification | |
* | |
* @param int $product_id - The low stock product id | |
* | |
* @since 4.4.0 | |
*/ | |
if ( false === apply_filters( 'woocommerce_should_send_low_stock_notification', true, $product->get_id() ) ) { | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment