Linux 软件免费装
Banner图

KwaWingu Tours

开发者 kwawingu
更新时间 2026年11月23日 05:01
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

booking travel tours tour operator safari

下载

1.15.1

详情介绍:

KwaWingu Tours turns your KwaWingu operator account into a fast, SEO-friendly WordPress site. It syncs your tour catalog into native WordPress content (Tours & Destinations), gives you blocks and a one-click setup wizard, and lets guests book — without you maintaining a separate site. Requires a KwaWingu Tours operator account with API access. This plugin is a GPL-licensed, open-source client for that service: it connects to the KwaWingu Tours Developer API using your operator slug and API keys, and it does nothing without them. API access is a paid part of your KwaWingu account (included in the Professional plan, or bought separately), in the same way a payment-gateway plugin needs a merchant account. The plugin itself has no paid tiers, licence keys, trials or locked features: every block, shortcode and setting it ships works the moment your account's API access is on. Whether your account has API access is decided by the KwaWingu servers, never by this plugin: when access is off, the API answers 403 api_access_required, your synced tours keep showing, and wp-admin shows you one notice with the fix. Your KwaWingu account also issues test keys (kw_pk_test_, kw_sk_test_). With them the plugin talks to a private sandbox of your account (sample tours, bookings that are never real, scripted test payments), so you can build and check the site before you switch to live keys. What it does that a generic tour or booking plugin does not: it does not ask you to maintain a second copy of your tours in WordPress. Your catalog, prices, departures, seat availability, reviews, destinations and brand colours live in your KwaWingu operator account, where your OTA channels and payment gateway already are, and this plugin mirrors them into native WordPress content, reads prices and availability live on every page view, and hands the booking and the payment to your account (through your own payment gateway) so a seat sold on your site is the same seat sold everywhere else. What you get:

安装:

  1. Install from Plugins → Add New (search "KwaWingu Tours"), or upload the plugin zip, or git clone https://github.com/KwaWingu/kw-wp-plugin into wp-content/plugins/kwawingu-tours (no build step is needed — the compiled block bundles are committed).
  2. Activate the plugin.
  3. Go to Settings → KwaWingu Tours, enter your operator slug and API keys, choose a booking mode, and save. Create the keys in your KwaWingu dashboard under Settings, API keys. Live keys need API access on your KwaWingu account: without it every API call answers 403 api_access_required and the plugin tells you so in wp-admin. To try the plugin first, use the Test keys from the same page: they reach your private KwaWingu sandbox.
  4. The public API key is a publishable key (kw_pk_…). Grant it site:read, profile:read, tours:read, availability:read, departures:read, calculator:read and bookings:read. If KwaWingu asks for an allowed origin, enter your WordPress site address (e.g. https://www.example.com).
  5. The private API key (kw_sk_…) is only needed for the Inquiry Form and on-site booking. Grant it the inquiries:write, quotes:write, bookings:write and payments:write scopes.
  6. Use two live keys or two test keys, never one of each: the settings page warns about a mixed pair.
  7. Go to Settings → KwaWingu Setup and click Build my site.
  8. Visit your site.

屏幕截图:

  • The one-click setup wizard after "Build my site": branding pulled from your account, Home / Tours / About / Contact scaffolded, tours imported.
  • The block inserter: all twelve KwaWingu blocks (Tours Grid, Tour Detail, Featured Tours, Book Button, Reviews, Destinations Grid, Tour Search, Trip Calculator, On-site Booking, Gallery, Availability Calendar, Inquiry Form).
  • Tours Grid block on the front end — synced tours with their cover photos from your own media library and live prices.
  • Tour Detail block — cover, duration, difficulty, live price, next departure and description, with the Book button.
  • Availability Calendar block — a month grid of a tour's departures with seats left.
  • On-site Booking block — a real departure picked, guest details, and the live quote from your account before "Book & pay".
  • Trip Calculator block — the party and nights entered, with the estimate computed by KwaWingu.
  • Tour Search block — live results linking to the synced tour pages on your site.
  • Inquiry Form block — an inquiry that lands in your KwaWingu inbox and is kept as a Lead in WordPress.

升级注意事项:

1.15.1 Tour and destination URLs work straight after activation, and the rate limit can no longer be bypassed with a forged header. 1.15.0 Matches the current KwaWingu API: private and group trips book on-site, no more false "Sold out", brand colours apply, test keys supported. Run Sync once after updating. 1.14.3 Identifier prefix rename and hardened booking-route authorization for the WordPress.org review. No action needed on a fresh install. 1.14.2 Destination cards link to the full destination page on your hosted storefront instead of an empty local post. Run Sync once after updating. 1.14.1 Buttons in every block were invisible and the inquiry form was unstyled with a visible spam-trap field. Recommended for everyone. 1.14.0 Images, destinations, search, the calculator, the live price and every interactive shortcode were broken against the real API. Upgrade and run Sync now once to import your photos and destinations. 1.12.0 Prices and availability now come from your account live instead of going stale between syncs, and the sync interval setting finally takes effect when you change it. Recommended for everyone. 1.10.0 Keeps the booking and search blocks working on sites with full-page caching or a CDN. Recommended for all cached sites. 1.1.0 Fixes on-site booking against the live API — upgrade if you use on-site booking mode.

常见问题:

Do I need a KwaWingu account?

Yes. This plugin is a client for the KwaWingu Tours platform (https://tours.kwawingu.com) and has no standalone mode. You need an operator account, your operator slug and API keys: live keys need API access on the account, test keys reach its private sandbox. Without them the plugin activates but has nothing to show.

Can I try it before going live?

Yes, with the test keys from your KwaWingu dashboard (Settings, API keys, Test). The plugin then syncs the sandbox's sample tours and the on-site booking form books in the sandbox: no guest is emailed and no money moves. Pay with +255700000001 (paid at once), +255700000002 (fails) or +255700000003 (stays pending). A test-key sync never drafts your live tours; switch to live keys and sync again before you launch.

Is the plugin itself paid? Does it lock any feature behind a plan?

No. The plugin is free and GPL-licensed, and nothing in it is disabled by a plan, licence key, trial period or usage quota. It connects to the API access of your KwaWingu account, a paid part of that service, similar to how a payment-gateway plugin connects to your paid payment account. The only entitlement check is the one the KwaWingu API itself makes on every request; the plugin merely reports the API's answer (a 403) to the site owner and keeps your already-synced tours online.

What happens if API access on my KwaWingu account lapses?

Your synced tour and destination posts stay published, editable and indexable. Live prices, availability, search, the calculator and on-site booking pause with a visitor-safe "not available at the moment" message, and administrators see one notice in wp-admin linking to the dashboard page where API access is renewed (Settings, API keys). Nothing is deleted.

Are my API keys safe?

Yes. Keys are stored server-side and never sent to the browser. Interactive features (search, calculator, on-site booking) call a same-origin, nonce-protected WordPress REST endpoint that forwards to the KwaWingu API on the server. The private key is only used for booking writes, server-side.

Which booking mode should I use?

Start with Redirect: zero setup, always-correct availability, payment handled by your hosted KwaWingu booking page. Use Widget to embed booking in a page, or On-site for a fully in-page booking and payment flow (needs your private key configured). Redirect and Widget need the hosted booking pages switched on in your KwaWingu account; the settings page warns you when they are off.

Will it work with my theme?

Yes. Blocks are theme-agnostic and server-rendered; classic themes can use the [kwawingu_*] shortcodes.

Can I point the plugin at a staging or self-hosted KwaWingu?

Yes. Add define( 'KWAWINGU_TOURS_SITE_BASE', 'https://staging.example' ); to wp-config.php — the Developer API root becomes KWAWINGU_TOURS_SITE_BASE/api/v1 and the hosted booking links and dashboard link follow it. KWAWINGU_TOURS_API_BASE can still be defined separately to override only the API root.

How do tours stay up to date?

Tour content re-syncs automatically (hourly by default; configurable), via a "Sync now" button, and instantly when KwaWingu pushes a change to the Instant resync endpoint. Price, currency and sold-out state are not synced at all — they are read live from your account on every page view, with the last synced values as a fallback if the API is unreachable. Your manual edits to a tour are preserved on future syncs.

更新日志:

1.15.1 1.15.0 Brought up to date with the current KwaWingu Tours Developer API, checked call by call against the API and live read-only requests. 1.14.3 1.14.2 1.14.1 Release follow-ups, found while capturing the WordPress.org screenshots from a live install. 1.14.0 Found by running the plugin end-to-end against a real KwaWingu backend (WordPress in Docker, every shortcode and block, the editor, the proxy, the paid gate). Nine things did not work: 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.3.0 0.2.0 0.1.0