Linux 软件免费装

Lounastaja

开发者 lounastaja
更新时间 2026年10月23日 12:43
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

shortcode restaurant lunch menu

下载

1.0.4

详情介绍:

Lounastaja adds a lunch menu to a WordPress post or page using the [lounastaja-widget] shortcode. WordPress retrieves an HTML fragment, so the initial page response includes the menu text. The Lounastaja widget script provides the interactive widget in the visitor's browser. An active Lounastaja account with access to website widgets is required. Lounastaja is a paid external service. The WordPress plugin is free; service subscriptions are managed separately by Lounastaja. Obtain the widget ID and API key from your Lounastaja widget's embed code. For help obtaining these values, contact Lounastaja through lounastaja.fi. The shortcode supports an explicit language. Without it, the plugin uses Polylang or WPML when available; otherwise, the service and browser widget determine the language. Successful HTML responses are cached for up to one hour. An hourly WP-Cron task clears fragments and requests page-cache purges for remembered single posts and pages through supported cache plugins. WP-Cron timing depends on the site's configuration and traffic. Hosting and CDN caches may cause additional delays; the plugin does not guarantee a one-hour maximum across every cache layer.

安装:

  1. Upload the lounastaja plugin folder to /wp-content/plugins/, or install its ZIP through Plugins > Add New > Upload Plugin.
  2. Activate Lounastaja through the Plugins screen.
  3. Obtain your widget ID and API key from your Lounastaja widget's embed code.
  4. Add the shortcode to a post or page, replacing the example values with your widget's values.
[lounastaja-widget widget_id="WIDGET_ID" api_key="API_KEY"] To select a language: [lounastaja-widget widget_id="WIDGET_ID" api_key="API_KEY" lang="en"] widget_id and api_key are required. A shortcode missing either returns no content. Use a language supported by your widget. Regional codes such as en_US and en-US are normalized to en.

常见问题:

Do I need a Lounastaja subscription?

Yes. You need an active account with access to website widgets, a widget ID and an API key. This plugin does not create an account or subscription.

Is the menu included in the page HTML?

Yes, when WordPress retrieves a valid HTML fragment. If the request fails, the container remains available for the browser widget. Server-side requests are retried after a one-minute failure cache expires. A full-page cache can retain an earlier response.

How often does the menu update?

The HTML cache lasts up to one hour. The hourly purge uses WP-Cron; browser refresh behavior is controlled by the widget. Page, hosting and CDN caches may cause additional delays.

Which languages are supported?

Use lang to select a language available in your widget. When omitted, Polylang or WPML can supply the page language.

Where can I get help?

Contact Lounastaja through lounastaja.fi. Do not share private account credentials.

更新日志:

1.0.4 1.0.3 1.0.2