HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/public_html/wp-content/themes/woodmart/inc/integrations/woo-subscriptions.php
<?php
/**
 * WooCommerce Subscriptions.
 *
 * @package woodmart
 */

if ( ! class_exists( 'WC_Subscriptions' ) ) {
	return;
}

if ( ! function_exists( 'woodmart_wc_subscriptions_add_variable_product_types' ) ) {
	/**
	 * Add variable subscription product type.
	 *
	 * @param array $types Product types.
	 *
	 * @return array
	 */
	function woodmart_wc_subscriptions_add_variable_product_types( $types ) {
		$types[] = 'variable-subscription';

		return $types;
	}

	add_filter( 'woodmart_variable_product_types', 'woodmart_wc_subscriptions_add_variable_product_types' );
}

if ( ! function_exists( 'woodmart_wc_subscriptions_add_custom_product_types' ) ) {
	/**
	 * Add custom product types.
	 *
	 * @param array $types Product types.
	 *
	 * @return array
	 */
	function woodmart_wc_subscriptions_add_custom_product_types( $types ) {
		$types[] = 'subscription';
		$types[] = 'variable-subscription';
		$types[] = 'subscription_variation';

		return $types;
	}

	add_filter( 'woodmart_waitlist_allowed_product_types', 'woodmart_wc_subscriptions_add_custom_product_types' );
	add_filter( 'woodmart_price_tracker_allowed_product_types', 'woodmart_wc_subscriptions_add_custom_product_types' );
}