| 开发者 | myfleet |
|---|---|
| 更新时间 | 2026年7月21日 18:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[myfboen_booking] shortcode or the "MYF Fleet Booking Widget" Gutenberg blockmyf-fleet-booking-widget folder to /wp-content/plugins/, or install the plugin ZIP through Plugins → Add New → Upload Plugin.[myfboen_booking] shortcode, or insert the "MYF Fleet Booking Widget" block from the block editor.Yes. The widget searches fares and creates bookings against the MYF Fleet API, which requires an account token and security salt.
Yes. The token and salt are stored as WordPress options and are only ever used server-side, inside the REST proxy endpoints this plugin registers. They are never localized to JavaScript or otherwise sent to the browser.
The widget still functions, but address fields will not offer autocomplete suggestions — visitors must use the airport/station search (which does not require Google Maps) or type addresses manually where supported.
Yes — headline, byline, customer care number, theme (light/dark) and accent colour are all configurable under Settings → MYF Fleet Booking Widget.
wp_rest nonce in the permission_callback of the /search and /booking proxy endpoints, so authorization is enforced at the permission layer rather than as an optional in-handler check. A missing or invalid nonce is now rejected with 403.GET /myfboen/v1/nonce endpoint that returns only a fresh nonce (no sensitive action) so full-page-cached pages can obtain a live nonce. The response is sent with no-store cache headers so proxies/CDNs never cache it./search, /booking) as intentionally public via __return_true, since the booking widget is used by anonymous visitors and has no user to authorize.wp_rest nonce verification into the request handlers as a best-effort CSRF check (a present-but-invalid nonce is rejected; an absent nonce is allowed so full-page-cached pages keep working)..myfb max-width.myfboen.[myfboen_booking full_width="1"]).