前言介紹
- 這款 WordPress 外掛「Notifications」是 2013-02-03 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2014-06-04,距離現在已有 3992 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
內容簡介
你是否曾經需要在網站上顯示通知?如果問我,那一定是太多次了。我寫這個外掛是因為目前市面上的通知欄插件要麼選項太多,要麼選項太少,要麼沒有我需要的選項。而且,創建一個通知並不容易,你必須前往某個奇怪的頁面並設置該插件獨有的選項。
這個外掛使用自訂文章類型,因此通知像我們所知道和喜愛的迷你文章那樣設置。多個控制選項以及內置過濾器使開發者和普通用戶都可以輕鬆自定義通知欄。
更新:此外掛現在支援Theme Hook Alliance tha_body_top 動作。如果你在你的子佈景主題中使用了 body_open 動作,請將其更改為 tha_body_top,例如:
do_action( 'tha_body_top' );
使用方法
通知欄尋找 body_open 勾子。這個勾子最初是由Andrew Nacin在 Trac 上提出的一個方式,可以鉤入在代碼中
標籤之後立即觸發的動作。想要過濾輸出以自定義通知的顯示方式嗎?在你的外掛程式或佈景主題中使用 notf_notification_filter 過濾器,像這樣:
function my_test_filter( $output ) {
$output = ''.notf_message().'';
return $output;
}
add_filter( 'notf_notification_filter', 'my_test_filter' );
重要提示:在你的過濾器中使用 notf_message 函數返回實際通知。
原文外掛簡介
How many times have you needed to display a notice across your site? Too many, if you ask me. I wrote this plugin because many of the notification bar plugins out there leave much to be desired. Either there are too many options or not enough or not the ones that I want. Plus, it’s not easy to create a notice — you have to go to some crazy screen and set options unique to that plugin.
This plugin uses custom post types, so notifications are set up like mini-posts that we all know and love. Multiple controls, as well as a built-in filter, enable developers and casual users alike to easily customize the notification bar to your heart’s content.
Update: This plugin now supports the Theme Hook Alliance tha_body_top action. If you are using the body_open action in your child theme, please change this to tha_body_top, e.g.
do_action( 'tha_body_top' );
Usage
Notifications looks for the body_open hook. This hook was first proposed on Trac by Andrew Nacin as a way to hook into an action that fires immediately after the
Want to filter the output to customize how the notification gets displayed? Use the notf_notification_filter filter in your plugin or theme, like this:
function my_test_filter( $output ) {
$output = ''.notf_message().'';
return $output;
}
add_filter( 'notf_notification_filter', 'my_test_filter' );
Important: Use the notf_message function in your filter to return the actual notification.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Notifications」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.0.1 | 1.1.1 | 1.1.2 | 1.1.3 | trunk |
延伸相關外掛(你可能也想知道)
Yoast SEO 》Yoast SEO:#1 WordPress SEO 外掛, 自 2008 年以來,Yoast SEO 幫助全球數百萬個網站在搜尋引擎中排名更高。, Yoast 的使命是為所有人提供 SEO 服務。我們的...。
Elementor Website Builder – More Than Just a Page Builder 》, 全球超過 1000 萬個網站的領先網站建立平台, Elementor 是專為 WordPress 設計的領先網站建立平台,使網站製作者能夠使用直覺式的視覺建立工具建立專業、像...。
Contact Form 7 》Contact Form 7 可以管理多個聯絡表單,並且您可以使用簡單的標記靈活地自訂表單和郵件內容。此表單支援 Ajax 提交、CAPTCHA、Akismet 垃圾郵件過濾等功能。,...。
Classic Editor 》Classic Editor 是由 WordPress 團隊維護的官方外掛程式,可還原之前(也就是「經典」)的 WordPress 編輯器和「編輯文章」畫面,使使用者可以使用延伸這個畫...。
WooCommerce 》p>WooCommerce是全球最受歡迎的開源電子商務解決方案之一,擁有世界上最多的市場份額。, 我們的核心平臺是免費的、靈活的,並擁有全球社區的支持。開源的自由...。
LiteSpeed Cache 》LiteSpeed Cache for WordPress(LSCWP)是一種全方位的網站加速外掛,包括獨家的伺服器層快取和一系列的優化功能。, LSCWP 支援 WordPress Multisite 及大多...。
WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More 》f="https://wpforms.com/features/pre-built-form-templates/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin" rel="friend nofollow u...。
Akismet Anti-spam: Spam Protection 》Akismet會檢查您的評論和聯繫表單提交,將它們與全球垃圾郵件數據庫進行比對,以防止站點發佈惡意內容。您可以在部落格的“評論”管理畫面中檢查評論垃圾郵件的...。
Wordfence Security – Firewall, Malware Scan, and Login Security 》fective way to manage multiple WordPress sites with Wordfence installed from a single location., Monitor security status across all your sites from...。
Site Kit by Google – Analytics, Search Console, AdSense, Speed 》Site Kit是Google官方的WordPress外掛程式,提供有關人們如何尋找和使用您的網站的洞察。Site Kit是一站式解決方案,可部署、管理並獲取關鍵Google工具的見解...。
All-in-One WP Migration and Backup 》orage providers such as Dropbox, Google Drive, Amazon S3, and more, making it easy for you to securely store and access your website backups at any...。
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin 》WordPress Mail SMTP外掛, 如果您的WordPress網站無法正確發送電子郵件,您並不孤單。超過三百萬個網站使用WP Mail SMTP可靠地發送電子郵件。, 我們的目標是...。
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) 》le Plugins include Complianz GDPR, Disable Updates Manager, and Really Simple CAPTCHA., , Really Simple SSL是一個外掛,自動配置你的網站最大程度上使...。
Jetpack – WP Security, Backup, Speed, & Growth 》search engines, and grow your traffic with Jetpack. It’s the ultimate toolkit for WordPress professionals and beginners alike., , Customize and des...。
Yoast Duplicate Post 》這個 WordPress 外掛可以讓使用者複製任何類型 (type) 的文章,或將其複製到新的草稿 (draft) 以供進一步編輯。, 使用方法:, , , 在「編輯文章」或「編輯頁...。