Update abstract-wc-order.php

Created an action to be able to hook into and add additional notification triggers.
This commit is contained in:
rchq 2015-09-08 11:00:22 -07:00
parent 799353e8f2
commit 332c1bdf9c
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}