Bayle Rescue Widget shows a restaurant’s food rescue bags from Bayle on a WordPress page: surplus food sold at a discount before closing. Bags, prices, normal value, stock and pickup times are managed in Bayle; the plugin shows them as part of your page, styled by your theme, with the price, normal value and discount, the pickup window (today, tomorrow or weekday and date) and live stock.
This plugin is an interface to the Bayle food rescue service at https://rescue.bayle.food. You need an active Bayle restaurant with food rescue turned on. Each site sets its own restaurant slug in Settings Bayle Rescue. The plugin stores only the slug, default language, display options and the rescue base URL. It does not store API keys.
Add the Bayle Rescue block, or the shortcode [bayle_rescue_widget] (also available as [bayle_rescue] when no other plugin uses that shortcode).
For table booking, see the separate Bayle Booking Widget plugin; for the restaurant menu and pickup ordering, see Bayle Menu Widget.
This plugin connects to the Bayle food rescue service, operated by Bayle (https://bayle.food). It is required: without it there are no bags to show.
https://rescue.bayle.food (or another official https://*.bayle.food host set by the site admin).https://rescue.bayle.food/api/{slug}/bags?lang=… when a page with the bags is viewed and no fresh cached copy exists, at most once a minute per language, and when the admin clicks “Refresh rescue bags now”. It sends the restaurant slug and language, and your site address in the User-Agent./wp-json/bayle-rescue-widget/v1/rescue, read-only) for current stock about once a minute, for up to 30 minutes. Your site answers from the cached feed above. Visitors’ browsers do not contact Bayle for the bag list.images="0".https://rescue.bayle.food/{slug}?embed=1&lang=…, which sends the visitor’s IP address and your site address as part of the normal page request.https://rescue.bayle.food/{slug} with the bag reference and quantity), or the restaurant’s rescue page on Bayle. Pickup time, contact details (name, email, phone) and card payment are entered there, not in WordPress.https://captcha.bayle.food. No Google reCAPTCHA is used, and this plugin does not load the captcha script on your site.The plugin’s only server-side request is the public rescue feed above. It sets no cookies and adds no tracking.
Basic:
[bayle_rescue_widget]
Options:
slug="your-restaurant" – show another restaurant than the one in Settings.lang="fi|sv|en" – fixed language. If omitted, the Settings default, then the visitor’s language (site language, Polylang or WPML).display="native|iframe" – in your theme’s style, or the embedded Bayle page.images="0" (no photos), reserve="0" (list only, no Reserve buttons), heading="2|3|4|5" (bag name heading level, default 3).base_url – only an official https://*.bayle.food address; other values are ignored.Example: [bayle_rescue_widget slug="your-restaurant" lang="fi" reserve="0"]