woocommerce_should_send_low_stock_notification

woocommerce_should_send_low_stock_notification

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_should_send_low_stock_notification') is found 1 times:

  • /includes/class-wc-emails.php line 693
    		 * @param int $product_id - The low stock product id
    		 *
    		 * @since 4.7.0
    		 */
    		if ( false === apply_filters( 'woocommerce_should_send_low_stock_notification', true, $product->get_id() ) ) {
    			return;
    		}
    
    		$subject = sprintf( '[%s] %s', $this->get_blogname(), __( 'Product low in stock', 'woocommerce' ) );
    		$message = sprintf(
    			/* translators: 1: product name 2: items in stock */