mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-05-03 05:15:03 +08:00
26 lines
532 B
PHP
26 lines
532 B
PHP
<?php
|
|
|
|
/**
|
|
* Helper trait for the free trial subscriptions handling.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\WcSubscriptions
|
|
*/
|
|
declare (strict_types=1);
|
|
namespace WooCommerce\PayPalCommerce\WcSubscriptions;
|
|
|
|
use WC_Subscriptions;
|
|
/**
|
|
* Class SubscriptionsHandlerTrait
|
|
*/
|
|
trait SubscriptionsHandlerTrait
|
|
{
|
|
/**
|
|
* Whether the subscription plugin is active or not.
|
|
*
|
|
* @return bool
|
|
*/
|
|
protected function is_wcs_plugin_active(): bool
|
|
{
|
|
return class_exists(WC_Subscriptions::class);
|
|
}
|
|
}
|