| 开发者 | danieltribii |
|---|---|
| 更新时间 | 2026年9月25日 18:11 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<script> tags out of Custom HTML, so
pasting the snippet by hand can silently produce nothing at all — no error, no empty box,
just a page with no booking on it.
This plugin removes that step. Paste your widget ID once and add a block, a shortcode, or
a floating button that follows guests around the site.
What you get
[tribii_booking] and [tribii_search] for the Classic editor, Elementor and other page buildersapp.tribii.com, which is what
renders the booking flow for your guests. Booking data is handled by Tribii under its own
privacy policy and terms.
The plugin itself stores only your widget ID and one checkbox in your WordPress options
table. It sets no cookies and collects nothing about your visitors. When you press
Verify in the settings screen, your site makes one request to
app.tribii.com/api/widget/settings carrying your widget ID, so the screen can show which
property it belongs to.
Source code and build
Everything in this plugin is human-readable except the two block scripts under build/,
which are compiled by @wordpress/scripts (webpack). Their unminified source ships
alongside them in src/, so nothing here is a black box:
src/booking/index.js builds build/booking/index.jssrc/search/index.js builds build/search/index.jsnpm installnpm run buildwp-scripts build --webpack-src-dir=src --output-path=build, kept
in the bundled package.json. No other file in the plugin is generated, minified or
obfuscated, and the plugin bundles no third-party libraries.
Yes. The plugin connects a property you already have in Tribii. An account is free at tribii.com.
In Tribii, open Settings and then Integrations. It starts with wid_.
Tribii can restrict a widget to one website. In Tribii, open Settings → Property and check that the website field is this site's address.
Yes. Set the site-wide widget ID for the main one, then give any individual block or
shortcode its own id="wid_...".
Yes. Use the shortcodes; they work anywhere a page builder accepts one.
The script loads asynchronously and the booking flow loads in an iframe, so it never blocks your page from rendering. One script is loaded per page however many blocks are on it.