Files
wordpress-theme-aksrt/src/Content/VipService.php
T

38 lines
682 B
PHP

<?php
/**
* @package AKSRT
*/
namespace AKSRT\Content;
defined('ABSPATH') || exit;
class VipService {
use VipServiceRest;
use VipServicePurchase;
use VipServicePackages;
use VipServiceModal;
use VipServiceMembership;
private static $instance = null;
public static function get_instance(): self {
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}
public function init(): void {
add_action('rest_api_init', [$this, 'register_routes']);
if (class_exists(VipMembershipExpiry::class)) {
VipMembershipExpiry::init();
}
}
}