Пример #1
0
 public static function instance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Пример #2
0
 public function bootstrap_api($server)
 {
     $api = WP_JS_Plugin_API::instance();
     $api->set_server($server);
     $api->register_routes();
 }