<?php
/**
 * WooCommerce feature compatibility declarations.
 *
 * The premium package replaces the free package and reuses the same settings.
 *
 * @package DreamFast_CF
 */

defined( 'ABSPATH' ) || exit;

add_action(
	'before_woocommerce_init',
	static function () {
		if ( ! class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
			return;
		}

		\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility(
			'custom_order_tables',
			DREAMFAST_CF_FILE,
			true
		);
	}
);
