woocommerce_should_send_no_stock_notification, true, $product->get_id(
woocommerce_should_send_no_stock_notification, true, $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_no_stock_notification, true, $product->get_id(') is found 1 times:
- /includes/class-wc-emails.php line 1112
* @param int $product_id - The out of stock product id * * @since 4.6.0 */ if ( false === apply_filters( 'woocommerce_should_send_no_stock_notification', true, $product->get_id() ) ) { return; } // If this is a variation but stock is managed at the parent level, use the parent product for the notification. if ( $product->is_type( ProductType::VARIATION ) && 'parent' === $product->get_manage_stock() ) { $parent_product = wc_get_product( $product->get_parent_id() );