woocommerce_should_send_backorder_notification, true, $args[product]->get_id(
woocommerce_should_send_backorder_notification, true, $args[product]->get_id(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_should_send_backorder_notification, true, $args[product]->get_id(') is found 1 times:
- /includes/class-wc-emails.php line 1218
* @param bool $send Whether the backorder notification should be sent. * @param int $product_id The backordered product id. * @since 11.0.0 */ if ( false === apply_filters( 'woocommerce_should_send_backorder_notification', true, $args['product']->get_id() ) ) { return; } $stock_before = $args['quantity'] + $args['product']->get_stock_quantity(); $backordered_quantity = $args['quantity'] - max( 0, $stock_before );