
內容簡介
### 總結:
WeTravel Widgets 外掛讓您能夠自定義 WeTravel 的嵌入式小工具,使其無縫適應您的 WordPress 網站設計。您可以創建多個小工具設計,保存它們以供重複使用,並使用簡碼或 Gutenberg 區塊輕鬆嵌入它們到任何地方。
### 問題與答案:
1. WeTravel Widgets 外掛的主要功能有哪些?
- 小工具自定義:自定義 WeTravel 的嵌入式小工具的樣式和佈局
- 多個設計:為不同頁面或區段創建並保存多個小工具設計
- 佈局選項:可選擇垂直、網格或旋轉木馬佈局
- 按鈕自定義:自定義按鈕的顏色、文字和行為
- 視覺設計庫:管理所有的小工具設計
- 輕鬆嵌入:使用簡碼或 Gutenberg 區塊將小工具放在任何位置
- 響應式設計:可在所有設備上良好顯示
- 實時預覽:在編輯時即時查看自定義
- 設計重複使用性:使用唯一的關鍵詞保存您的設計以便參考
2. WeTravel Widgets 外掛如何與 WeTravel API 進行連接?
- 外掛直接連接到 WeTravel API,確保您的旅行信息始終是最新的。當您在 WeTravel 上更新旅行細節、價格或可用性時,更改將自動反映到您的網站上。
3. 這個外掛對旅行社、旅遊運營商和使用 WeTravel 的任何業務有何好處?
- 對於想要自定義其小工具外觀以配合品牌的旅行社、旅遊運營商和使用 WeTravel 的任何業務來說是理想的。
4. WeTravel Widgets 外掛的外部服務連接到 WeTravel 的服務有哪兩個主要目的?
- 旅行信息檢索:從 WeTravel 的 API 检索旅行数据以在您的网站上显示您的旅行
- 预订小部件集成:当用户与预订按钮进行交互时,外插会加载 WeTravel 的嵌入式结帐功能
5. 如何通过簡碼的參數調整 [wetravel_trips] 為自訂的設計?
- 參數包括 widget、display_type、button_type、button_text、button_color、items_per_page、items_per_row、items_per_slide、trip_type、date_start 和 date_end。
外掛標籤
開發者團隊
原文外掛簡介
The WeTravel Widgets plugin allows you to customize WeTravel’s embedded widgets to seamlessly match your WordPress website’s design. Create multiple widget designs, save them for reuse, and easily embed them anywhere using shortcodes or Gutenberg blocks.
Key Features:
Widget Customization – Customize WeTravel’s embedded widgets with your own styles and layouts
Multiple Designs – Create and save multiple widget designs for different pages or sections
Layout Options – Choose between vertical, grid, or carousel layouts
Button Customization – Customize button colors, text, and behavior
Visual Design Library – Manage all your widget designs in one place
Easy Implementation – Use shortcodes or Gutenberg blocks to place widgets anywhere
Responsive Design – Looks great on all devices from mobile phones to desktop computers
Live Preview – See your customizations in real-time while editing
Design Reusability – Save your designs with unique keywords for easy reference
The plugin connects directly to the WeTravel API to ensure your trip information is always up-to-date. When you update trip details, prices, or availability on WeTravel, changes will automatically reflect on your website.
Perfect for travel agencies, tour operators, and any business using WeTravel that wants to customize their widget appearance to match their brand.
External Services
This plugin connects to WeTravel’s services for two main purposes:
Trip Information Retrieval
The plugin fetches trip data from WeTravel’s API (api.wetravel.com) to display your trips on your website
The only configuration needed is the identification information extracted from the WeTravel embed code that you provide in the plugin settings
Data retrieved includes trip details, pricing, availability, and SEO configuration
This data is fetched whenever a widget is loaded or refreshed on your site
No personal user data is sent during this process – only the necessary identification data parsed from your provided embed code
Booking Widget Integration
When users interact with booking buttons, the plugin loads WeTravel’s embed checkout functionality
The integration uses only the necessary identification data extracted from the embed code you provided in the WordPress admin settings
During the booking process, users may provide personal information directly to WeTravel (not through your WordPress site)
The checkout process is handled entirely by WeTravel’s secure platform
User data collected during booking is subject to WeTravel’s privacy policy
For more information about how WeTravel handles data and provides services, please review:
– Terms of Service: https://www.wetravel.com/terms
– Privacy Policy: https://www.wetravel.com/privacy
Shortcode Parameters
The [wetravel_trips] shortcode accepts the following parameters:
widget – The ID or keyword of your saved widget design
display_type – Layout style: “vertical”, “grid”, or “carousel” (default: “vertical”)
button_type – Type of button: “book_now” or “view_trip”
button_text – Custom text for the button
button_color – Color of the button (hex code, e.g., “#33ae3f”)
items_per_page – Number of trips to display per page (default: 10)
items_per_row – Number of trips to display per row in grid layout (default: 3)
items_per_slide – Number of trips to display per slide in carousel layout (default: 3)
trip_type – Filter trips by type: “all”, “one-time”, or “recurring”
date_start – Start date for filtering trips (format: YYYY-MM-DD)
date_end – End date for filtering trips (format: YYYY-MM-DD)
search_visibility – Toggle search bar visibility: true (1) or false(0) (default: false). This is not available for carousel display type.
border_radius – Border radius for the widget design (default: 0)
locations – Semicolon-separated list of locations to filter by
Basic usage with a saved design:
[wetravel_trips widget=”my-custom-design”]
Example with custom parameters:
[wetravel_trips display_type=”carousel” items_per_slide=”3″ button_color=”#ff0000″ button_text=”Book Now” locations=”New York, USA;London;Paris, France”]
