# subscription/1.3.2/includes/Utils/ProductFactory.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.3.2. 13 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.3.2/code/includes/Utils/ProductFactory.php
- Raw: https://pluginprobe.com/plugins/subscription/1.3.2/raw/includes/Utils/ProductFactory.php
- Modified: 2025-04-24T09:50:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/1.3.2/code/includes/Utils/ProductFactory.php#L10-L20`.

```php
<?php

namespace SpringDevs\Subscription\Utils;

class ProductFactory {

	public static function load( \WC_Product $product ): Product {
		$product_data_class = apply_filters( '_subscrpt_product_data_class', SubscriptionProduct::class, $product );

		return new $product_data_class( $product );
	}
}

```
