Linux 软件免费装

WHA Tours Core

开发者 webhelpagency
更新时间 2026年9月28日 14:31
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

block custom post type travel lead form tours

下载

详情介绍:

WHA Tours Core keeps the content structure of a tour operator site in a plugin, so it survives a theme switch, as required by the WordPress.org theme guidelines. The plugin registers: Template helpers for theme authors: wha_tours_core_get_meta(), wha_tours_core_get_tours(), wha_tours_core_get_term_image_id(), wha_tours_core_next_date(), wha_tours_core_format_dates(), wha_tours_core_transport_label(), wha_tours_core_transport_icon(), wha_tours_core_category_color() and wha_tours_core_price_label().

安装:

  1. Upload the wha-tours-core folder to /wp-content/plugins/, or install the plugin through the Plugins screen.
  2. Activate the plugin through the Plugins screen. The permalinks are refreshed automatically on activation.
  3. On a fresh site, go to Tours → Import demo content to fill it with the sample catalogue, or run wp wha-tours demo import.
  4. Add tours under Tours, and place the Lead form block or the [wha_tours_lead_form] shortcode on your contact page.

屏幕截图:

  • The lead form on the front end.

升级注意事项:

1.0.0 Initial release.

常见问题:

Where do the submitted requests go?

Each request is emailed to the address in Settings → General (filterable with wha_tours_core_lead_recipient) and stored as a private entry under Tours → Leads, visible to administrators only.

Does uninstalling delete my tours?

No. Uninstalling removes only the options and transients created by the plugin. Tours, terms, tour meta and stored leads are kept.

What does the demo import change on a site that is already in use?

Nothing that exists. Every tour, term, page and image it creates is tagged with the _wha_tours_core_demo meta key and skipped on the next run. Menus are only created for theme locations that have no menu yet, Customizer settings are only written when the WHA Tour Poster theme is active and the setting is still empty, and the Reading settings are only changed while the front page still shows the latest posts.

Which filters and actions are available?

wha_tours_core_get_tours_args filters the query arguments, wha_tours_core_lead_recipient filters the notification address and wha_tours_core_lead_submitted fires after a request was stored.

更新日志:

1.0.0