內容簡介
WP Notices 是一種靈活的方式來向讀者顯示通知。
通知可以按 WordPress 用戶角色(admin、editor、contributor、author、subscriber、reader、anon 或任何其他配置角色)、按 WordPress 權限(manage_plugins、read、delete_pages 或任何其他配置權限)或針對特定用戶進行定位。
通知消息可以顯示為文本,或者每個消息可以自動轉換為 PNG 圖像。用於顯示您希望搜索引擎不索引為文本的諮詢通知非常有用。用於動態創建文章圖像也非常有用。圖像目錄會定期清除,如果您想保留圖像,請下載並將其移動到您的 WordPress 媒體庫中(別忘了將其添加到文章中作為媒體庫中的圖像)。
可以使用自然語言來設置顯示時間或期限。無需設置開始和結束時間段,永遠顯示通知,從設置的開始時間到開放式的結束日期,為一個特定的日期,為一次性的數天範圍或者終身。例如,start=”Thursday 8am” End=”Friday” 會在每個星期四從上午 8 點開始直到星期五開始前顯示通知,或者start=”Thursday 8am” End=”Friday 4:30pm” 會在每個星期四從上午 8 點開始直到星期五下午 4:30 顯示通知;您甚至可以說 start=”Wednesday 1st June 2016 8am” End=”Friday 24th June 2016″。
通知可以被設計成改變它的外觀。有四個內置的樣式類(alert-success、alert-info、alert-warning 和 alert-danger)。
WP Notices 內置了一個幫助消息。當使用 WP Notices shortcode 時,如果設置 help=\true\,可以顯示幫助信息。
WP Notices 的設計旨在顯示通知給特定用戶、用戶組或所有讀者。它還可以作為向特定用戶顯示頁面內容的靈活輕量級方式(樣式類是可選的),或作為會員資格插件(儘管您需要手動配置會員角色)。
WP Notices 已經過測試。已知能夠正常工作。如果您發現了錯誤,請告訴我們。支援將對修復錯誤提供支援。我們忙於日常工作職責,因此有時可能會支援比較慢,未在發布支援請求之前閱讀常見問題解答(FAQs)的任何人都會被即時指引閱讀常見問題解答(FAQs)。
使用方法
請參閱 FAQ 部分了解使用說明。
外掛標籤
開發者團隊
原文外掛簡介
WP Notices is a flexible way to display notices to readers.
Notices can be targeted by WordPress user role (admin, editor, contributor, author, subscriber, reader, anon or any other configured role), by WordPress capabilities (manage_plugins, read, delete_pages or any other configured capability) or targeted at a specific user.
Notice messages can be displayed as text or each message can be automatically converted to a PNG image. Useful for displaying advisory notices that you prefer search engines do not index as text. Useful for creating post images on the fly. The image directory is wiped periodically so download and move images to your WordPress media library if you want to keep them (remember to add them to the post as images from the media library).
The time or period of display can be set using natural language. Display notices forever (by leaving out a start and end time period), from a set start time to an open ended end date, for a specific day, range of days for one time or ad infinnitum. For example start=”Thursday 8am” End=”Friday” would display a notice every Thursday from 8am until start of Friday or start=”Thursday 8am” End=”Friday 4:30pm” would display a notice every Thursday from 8am until 4:30pm Friday; you can even say start=”Wednesday 1st June 2016 8am” End=”Friday 24th June 2016″.
The notice can be styled to change its appearance. There are four inbuilt style classes (alert-success, alert-info, alert-warning and alert-danger).
There is a help message built into WP Notices. When using the WP Notices shortcode set help=\true\ to display the help information.
WP Notices is written to be used to display notices to specific users, user groups or to all readers. It can easily also be used as a flexible lightweight way to show page content to specific users (the style classes are optional) or as a membership plugin (though you would need to configure your membership roles manually).
WP Notices has been tested. It is known to work. If you find a bug, let us know. Support will be provided to fix bugs. We are busy with regular work duties so support may be slow on occasion and anyone who does not read the FAQs before posting a support request will be promptly pointed to read the FAQs.
How to Use
See FAQ section for instructions.
