前言介紹
- 這款 WordPress 外掛「WP247 Extension Notification Server」是 2017-12-11 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2017-12-14,距離現在已有 2698 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6.31 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
theme | notice | message | extension | notification |
內容簡介
概述:
WordPress 的強項在於透過擴充套件(外掛和佈景主題)的使用來自定義。WP247 擴充套件通知系統提供標準介面,供 WordPress 外掛開發者與他們的使用者溝通重要的外掛資訊。在設定頁面中,您可以完全控制 WP247 擴充套件通知系統會與哪些外掛溝通,以及哪些通知將繼續顯示。
通知:
WP247 擴充套件通知系統會一直顯示通知,直到被關閉。外掛開發者將每個通知分配為下列三種消失類型中的其中一種:
1. None 表示通知是不可關閉的,關閉按鈕不會出現。
2. Temporary 表示當您點擊關閉按鈕時暫時關閉通知。關閉後,該通知直到下次刷新管理頁面時才會顯示。
3. Permanent 表示當您點擊關閉按鈕後,通知將永久消失。不論外掛開發者選擇的消失設定為何,您都可以透過在 WP247擴充套件通知系統的設定中勾選通知標題旁的核取方塊或點擊通知底部右側的「永久消失」鏈接,完全消除任何通知。
設定:
WP247 擴充套件通知伺服器設置頁面是您向 WP247 擴充套件通知伺服器介紹您的擴充套件和通知的地方。
1. 擴充套件:此處是識別您的擴充套件的地方,這也將用在您的擴充套件代碼中(有關更多資訊,請參閱 API 說明主題),用以告訴 WP247 擴充套件通知客戶端外掛哪些擴充套件參與了擴充套件通知。擴充套件設定包括:
- 擴充套件名稱:您的外掛名稱。
- 擴充套件 ID:您的外掛網址中的識別字串。此應匹配您的外掛的目錄名稱。
- 擴充套件類型:套件類型(外掛或佈景主題)。
- 伺服器網址:這個網址將回應 WP247 擴充套件通知客戶端外掛的通知更新查詢。
- 頻率: WP247 擴充套件通知客戶端外掛查詢新通知更新的頻率。
2. 通知:這裡是您撰寫分發給您的外掛使用者的通知消息的地方。通知設定包括:
- 狀態:指示通知是否當 WP247 擴充套件通知客戶端外掛查詢任何通知更新時應該分發。
- 通知標題:通知標題。此將出現在顯示通知時的第一行。
- 通知類型:通知類型。這將確定通知出現的位置以及側邊框的顏色。
- 可消失性:通知是否可關閉,如果可以,是暫時還是永久關閉。不論此設定如何, WP247 擴充套件通知客戶端外掛都會允許客戶端網站永久關閉任何通知。
- 持續時間:識別應該顯示該通知多長時間。
- 通知內容:您要發送的消息。
API:
為了使用 WP247 擴充套件通知系統,您必須先配置您的擴充套件資訊。然後,這將用於您的擴充套件,以告訴 WP247 擴充套件通知系統,您的擴充套件參與了擴充套件通知。
原文外掛簡介
OVERVIEW
The strength of WordPress is in it’s ability to be customized through the use of extensions (plugins and themes).
The WP247 Extension Notification System provides a standard interface for WordPress extension developers to communicate important information about their extension to their extension users.
The Settings page provides you with complete control over which extensions the WP247 Extension Notification System will communicate with and which notices will continue to be displayed.
NOTICES
The WP247 Extension Notification System will display notices until they are dismissed. The extension developer assigns one of three dismissibility types to each notice they send:
None indicates that the notice is not dismissible. The dismiss button will not appear.
Temporary indicates that the notice will be temporarily dismissed when you click the dismiss button. Once dismissed, the notice will not appear until the next time the Admin page is refreshed.
Permanent indicates that the notice will be permanently dismissed when you click the dismiss button. Once dismissed, the notice will not appear again.
Regardless of the dimissibility setting chosen by the extension developer, you can permanently dismiss any notice by clicking the Permanently Dismiss link at the lower right of the notice or by checking the checkbox next to the notice title in the WP247 Extension Notification System‘s Settings section.
SETTINGS
The WP247 Extension Notification Server Settings page is where you tell the WP247 Extension Notification Server about your extension and notices.
Extension
The Extension section is where you identify your extension. This information will also be used in your extension’s code (see the API help topic for more information) when polled by the WP247 Extension Notification Client plugin to see which extensions are participating in Extension Notifications. The Extension settings are:
Extension Name: The name your extension is known as.
Extension Id: The slug used by your extension. This should match the directory name your extension get installed into.
Extension Type: The type of extention (Plugin or Theme).
Server URL: The URL that will respond to the WP247 Extension Notification Client plugin’s notice update inquiries.
Frequency: How often should the WP247 Extension Notification Client plugin’s inquire about new notice updates.
Notice
The Notice section is where you compose the notification message that is to be distributed to your extension’s users. The Notice settings are:
Status indicates whether or not the notice should currently be distributed when the WP247 Extension Notification Client plugin inquires about any notice updates.
Notice Title: The title of your notice. This will appear on the first line when the notice is displayed.
Notice Type: The type of notice. This will determine where the notice appears and what color the side border will be.
Dismissability: Whether or not the notice is dismissible and if so, temporarily or permanently. Regardless of this setting, the WP247 Extension Notification Client plugin will allow the client site to permanently dismiss any notice.
Duration: Identifies how long should this notice be displayed to the client.
Notice Content: The message you desire to send.
=API=
In order to use the WP247 Extension Notification System you must first configure your extension information. This will then be used in your extension to tell the WP247 Extension Notification System that your extension is participting in extension notifications.
You will then need to modify your extension so that it reaponds to the wp247xns_client_extension_poll filter.
First, you must modify your extension to tell WordPress that you are responding to the wp247xns_client_extension_poll filter:
add_filter( "wp247xns_client_extension_poll_{extension_type}_{extension_id}", "my_routine" );
Then you must create a function in your extension to respond to the filter:
function my_routine( $extensions ) {
return array(
"name" => "Your Extension name",
"id" => "your-extension-id",
"type" => "plugin",
"version" => "", // your extension's version number (not required)
"server_url" => "http://your-extension-wordpress-url/wp-admin/admin-ajax.php",
"frequency" => "1 day", // (not required) defaults to "1 day"
);
}
That’s it. The WP247 Extension Notification System will take care of the rest!
Co-requisite
One final note. In order for your users to receive your notices, they must have installed and activated the WP247 Extension Notification Client plugin. You may want to prompt your users to install and activate this plugin if it is not active at the time your extension is loaded. For your convenience, we have provided a standardized method for accomplishing this.
First, copy the /wp-content/plugins/wp247-extension-notification-server/admin/wp247xns-client-corequisite-notice folder to your extension’s Admin folder.
Next, modify your extension to instantiate the WP247XNS_Client_Corequisite_Notice class. Something like:
require_once 'wp247xns-client-corequisite-notice/wp247xns-client-corequisite-notice.php';
$my_wp247xns_client_corequisite_notice
= new WP247XNS_Client_Corequisite_Notice( 'Your extension name' );
The WP247XNS_Client_Corequisite_Notice class constructor takes from one to three parameters:
WP247XNS_Client_Corequisite_Notice(
$extension_name,
$nag_frequency = '30 days',
$text_domain = 'wp247xns-client-corequisite-notice'
);
This will result in a notice being displayed to your extension’s users when either the WP247 Extension Notification Client plugin is not activated or your particular extension is not enabled to participate in the WP247 Extension Notification System. They will be able to dismiss the nottice, but it will be re-displayed after the nag frequency has passed.
Privacy Policy
Rest assured that the WP247 Extension Notification System does not capture any information about your site and does not send any information about your site when servers are polled for new notices.
In addition, the WP247 Extension Notification System does not capture any information from the client’s site.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP247 Extension Notification Server」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
EU Cookie Law for GDPR/CCPA 》EU Cookie Law 是輕量、優雅且強大的解決方案,可遵循歐洲的 Cookie 法律、GDPR和CCPA,並提供彈出式選項以在接受前鎖定腳本。, 包括各種自定義選項,可完美...。
Simple Banner – Easily add multiple Banners/Bars/Notifications/Announcements to the top or bottom of your website 》這個外掛可輕鬆在你的網站頂部顯示簡單的公告橫幅或資訊欄。你可以在設定內輕鬆自訂鏈結、文字和橫幅背景的顏色。你也可以自訂你想要的樣式,並加入自己的自...。
Easy Notification Bar 》透過 WordPress 的即時自訂(customizer)功能,輕鬆地在您的網站上添加自定義頂部通知訊息。此插件允許您輸入通知欄文本和一個可選的按鈕以顯示在文字旁邊,...。
Hide admin notices – Admin Notification Center 》厭倦了屏幕頂部的通知來自您安裝的所有 WordPress 外掛?, 以下是您可以做到的:, * 根據使用者角色顯示或不顯示通知。, * 將所有通知分組顯示在位於頁面右側...。
LuckyWP Cookie Notice (GDPR) 》The “LuckyWP Cookie Notice (GDPR)” 外掛可讓您通知訪客使用 cookies 的使用 (必須符合歐盟 GDPR 規定)。, 此外掛會顯示一個帶有“接受”按鈕、“...。
WPS Notice Center 》中文, WPS Notice Center 可以隱藏所有的管理提示,並將它們組合成一個可展開的單個提示,讓您完全享受 WordPress 介面而不受視覺污染。, 我們的所有擴充功能...。
Unbloater 》Unbloater是一個簡單而極簡的介面,可從 WordPress 管理儀表板和網站代碼中清除不必要和不需要的項目。它主要使用過濾器和動作來實現快速和乾淨的結果。設置...。
Sitewide Notice WP 》這是一個 WordPress 外掛,可以在網站每個頁面底部顯示一個小訊息條,用於顯示通知訊息,例如銷售、公告或任何文字訊息。, 這是一個輕量級的外掛,可以在每個...。
WordPress Notification Bar 》一個快速和簡單的通知欄和呼籲行動的外掛,可用於您的網站。, , 立即升級到通知欄專業版本! », , 好處、功能和選項:, , 快速且易於安裝, 自定義消息...。
Notification Bar, Announcement and Cookie Notice WordPress Plugin – FooBar 》FooBar 外掛讓你可以創建無限制搶眼的通知欄、公告和 Cookie 注意事項,以引起訪客的注意。FooBar 從頭開始完全重寫,為你提供嶄新和現代化的通知。, , 前往 ...。
WP BrowserUpdate 》許多網民仍使用過時的瀏覽器,主要原因是不知如何更新。為了安全和可靠性考量,建議使用較新的瀏覽器。本外掛以不打擾使用者的方式提醒您訪客需升級瀏覽器。...。
Popups for WooCommerce: Add to Cart, Checkout & More 》通知是 WooCommerce 在您的商店為客戶顯示的重要訊息,例如:, , 已將產品添加到購物車, 字段名稱是必填字段, 有優惠券嗎?, 等等…, , 有時候,根據主...。
Announcement & Notification Banner – Bulletin 》4「公告橫幅」, Bulletin 是一個輕量級的外掛,可將公告橫幅、促銷優惠和商店通知注入您的網站。, 以下是您會使用 Bulletin 的幾種典型情況:, , 緊急公告: 在...。
WPC Smart Messages for WooCommerce 》tc., Product or service updates, changes or discontinuations, Site maintenance, upgrades or downtime notices, Important policy updates or terms and...。
WP Post Disclaimer 》在內容的頂部、底部和內部添加有關文章/頁面/自定義文章類型的免責聲明/條款/警告, 功能, , 在文章/頁面或自定義文章類型上添加免責聲明, 定制選項, 自定義 C...。