內容簡介
總結:NWS Sendy 是一個 WordPress 外掛,與 Sendy 整合,讓使用者可以透過簡單的介面輕鬆管理電子郵件訂閱。外掛提供管理員設置頁面,用於配置 Sendy API 金鑰和清單 ID,並提供短代碼和區塊以在前端顯示訂閱表單。
問題與答案:
1. NWS Sendy 是什麼?
- NWS Sendy 是一個與 Sendy 整合的 WordPress 外掛,用於方便管理電子郵件訂閱。
2. 它提供了哪些功能?
- 提供了管理員介面,方便設置 API 金鑰和清單 ID;短代碼用於顯示訂閱表單小工具;區塊用於 WordPress 區塊編輯器,複製短代碼功能;提供了備用模板以顯示訂閱表單,如果主題模板未找到。
3. 如何自訂成功和錯誤訊息?
- 有兩個可用的篩選器,可以在訂閱嘗試後覆蓋成功和錯誤訊息。您可以通過實施篩選器來簡單覆蓋它們:
* nws_sendy_form_success_message
* nws_sendy_form_error_message
4. 如何使用?
- 使用短代碼 [nws_sendy_form] 在文章或頁面中顯示訂閱表單。
- 在區塊編輯器中添加 Sendy 表單區塊,以將訂閱表單包含在內容中。
外掛標籤
開發者團隊
原文外掛簡介
NWS Sendy is a WordPress plugin that integrates with Sendy, allowing users to easily manage their email subscriptions through a simple interface. This plugin provides an admin settings page for configuring the Sendy API key and List ID, as well as a shortcode and block to display a subscription form on the front end.
Features
Admin interface under the Tools menu for setting the API key and List ID.
Shortcode to display a subscription form widget.
Block for the WordPress block editor that replicates the functionality of the shortcode.
Fallback template for the subscription form if the theme template is not found.
Success and error message customization
There are two filters availabe for overriding success and error message after subscribe attempt.
You can simpy override them by implementing filters:
* nws_sendy_form_success_message
* nws_sendy_form_error_message
Usage
Use the shortcode [nws_sendy_form] to display the subscription form in posts or pages.
Add the Sendy form block in the block editor to include the subscription form in your content.
