Update abstract-wc-order.php
Created an action to be able to hook into and add additional notification triggers.
This commit is contained in:
parent
799353e8f2
commit
332c1bdf9c
|
@ -2513,6 +2513,8 @@ abstract class WC_Abstract_Order {
|
|||
if ( ! $notification_sent && 'yes' == get_option( 'woocommerce_notify_low_stock' ) && get_option( 'woocommerce_notify_low_stock_amount' ) >= $new_stock ) {
|
||||
do_action( 'woocommerce_low_stock', $product );
|
||||
}
|
||||
|
||||
do_action( 'woocommerce_after_send_stock_notifications', $product, $new_stock, $qty_ordered );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue