public static function instance() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }
public function bootstrap_api($server) { $api = WP_JS_Plugin_API::instance(); $api->set_server($server); $api->register_routes(); }