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

35 lines
618 B
PHP

<?php
/**
* @package AKSRT
*/
namespace AKSRT\Content;
defined('ABSPATH') || exit;
class VipService {
use VipServiceRest;
use VipServicePurchase;
use VipServicePackages;
use VipServiceModal;
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']);
add_action('aksrt_order_paid', [$this, 'on_order_paid'], 20, 2);
}
}