woocommerce_customer_stock_notifications_product_is_valid

woocommerce_customer_stock_notifications_product_is_valid

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.2.2

apply_filters('woocommerce_customer_stock_notifications_product_is_valid') is found 1 times:

  • /src/Internal/StockNotifications/Utilities/EligibilityService.php line 74
    		 * @param bool $is_valid True if the product is valid for notifications, false otherwise.
    		 * @param WC_Product $product The product to check.
    		 * @return bool True if the product is valid for notifications, false otherwise.
    		 */
    		return (bool) apply_filters( 'woocommerce_customer_stock_notifications_product_is_valid', true, $product );
    	}
    
    	/**
    	 * Check if a product allows signups.
    	 *
    	 * @param WC_Product $product The product to check.