<?php
/**
 * Utils Helpers for 3rd party plugins.
 *
 * @author     FutrX
 * @year       2023
 * @package    futrx.com
 * @subpackage NoMoreBots\Utils
 */

namespace NoMoreBots\Utils;

class Plugins {

	/**
	 * Returns true if WooCommerce is active.
	 *
	 * @return bool
	 */
	public static function isWooCommerceActive(): bool {
		return class_exists( 'WooCommerce' );
	}

	/**
	 * Returns true if WooCommerce Subscriptions is active.
	 *
	 * @return bool
	 */
	public static function isWooCommerceSubscriptionsActive(): bool {
		return class_exists( 'WC_Subscriptions' );
	}
}
