[WordPress] 外掛分享: WP Updates Notifier

首頁外掛目錄 › WP Updates Notifier
30,000+
安裝啟用
★★★★
4.2/5 分(35 則評價)
2224 天前
最後更新
問題解決
WordPress 3.1+ v1.6.0 上架:2011-05-31

內容簡介

這個外掛程式會監控你的 WordPress 安裝,並會在核心、外掛程式和佈景主題更新時發送電子郵件通知你。如果你不經常登入 WordPress 管理員,或支援客戶的網站,這個外掛程式非常適合你。

功能

設定更新檢查的時間間隔:每小時、兩次每天或每天一次。
設定 WordPress 檢查更新的頻率,這樣你就可以更早地了解更新了。
以電子郵件的方式獲得關於核心、外掛程式和佈景主題更新的通知。
選擇是否要被通知關於僅活躍的佈景主題和外掛程式的更新。
移除非管理者使用者的升級提示訊息。
對於高級使用者,有許多過濾器和動作可用。更多即將推出。

這個外掛程式是“Update Notifier”的分支版本。這個外掛程式的原因是,現有的外掛程式似乎已經沒有再進一步的開發了,而且也沒有辦法聯繫原始作者來詢問是否可以接手開發。WP Updates Notifier 優於Updates Notifier的改進如下:

從頭開始完全重寫,使用WordPress插件寫作的最佳實踐
代碼包裝在一個類中,因此更好的命名空間。
你可以設定cron的間隔,進行更頻繁的檢查。
通知之前會觸發WordPress內部更新檢查。
允許你設置“來源地址”。
允許您設置多個“收件人地址”。
利用了設置API。
高級用戶可用的幾個鉤子和過濾器。
提供積極支援和開發。

語言

法語由Christophe Catarina - 2013年7月3日添加
德語由Alexander Pfabel - 2012年10月2日添加

過濾器

為了讓你能夠更改 WP Updates Notifier 發送的電子郵件主題和內容,提供了兩個過濾器。

sc_wpun_email_subject

@parameters:
$email_subject - 要過濾的電子郵件主題。

例子:

/*
* 更改 WP Updates Notifier 發送的電子郵件主題。
*/
function alter_wp_updates_notifier_email_subject( $email_subject ) {
$email_subject = '這是更新通知的新電子郵件主題';
return $email_subject;
}
add_filter( 'sc_wpun_email_subject', 'alter_wp_updates_notifier_email_subject' );

sc_wpun_email_content

@parameters:
$message - 要過濾的電子郵件內容

例子:

/*
* 更改 WP Updates Notifier 發送的電子郵件內容。
*/
function alter_wp_updates_notifier_email_content( $message ) {
$message = '這是我們的新電子郵件內容,將覆蓋預設內容。';
return $message;
}
add_filter( 'sc_wpun_email_content', 'alter_wp_updates_notifier_email_content' );

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.6.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Updates Notifier」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Monitors your WordPress installation for core, plugin and theme updates and emails you when they are available. This plugin is ideal if you don’t login to your WordPress admin regularly or you support a client’s website.
Features

Set the interval of how often to check for updates; hourly, twice daily or daily.
Sets WordPress to check for updates more often meaning you get to know about updates sooner.
Get emailed about core, plugin and theme updates.
Chose if you want to be notified about active only themes and plugins updates.
Remove upgrade nag message to non-admin users.
For advanced users there are a number of filters and actions you can use. More coming soon.

This plugin is a fork of Update Notifier. This plugin was forked because there seemed to be no further development on the existing plugin and there was no way to contact the original author to ask about taking ownership. WP Updates Notifier has the following improvements over Updates Notifier:

Completely rewritten from the ground up using best practises for writing WordPress plugins
Code wrapped in a class so better namespace.
You can set the cron interval, allowing for more frequent checks.
Update checks trigger WordPress internal update check before notification.
Allows you to set the ‘from address’.
Allows you to set multiple ‘to addresses’.
Makes use of the Settings API.
A number of available hooks and filters for advanced users.
Active support and development.

Languages

French by Christophe Catarina – Added 03 July 2013
German by Alexander Pfabel – Added 02 October 2012

Filters
Two filters have been provided to allow you to alter the email subject and email content being sent by WP Updates Notifier.
sc_wpun_email_subject
@parameters:
$email_subject – the email subject to be filtered.
Example:
/*
* Alter the email subject being sent by WP Updates Notifier
*/
function alter_wp_updates_notifier_email_subject( $email_subject ) {
$email_subject = 'This is the new email subject for updates notifier';
return $email_subject;
}
add_filter( 'sc_wpun_email_subject', 'alter_wp_updates_notifier_email_subject' );

sc_wpun_email_content
@parameters:
$message – the content of the email to be filtered
Example:
/*
* Alter the email content being sent by WP Updates Notifier
*/
function alter_wp_updates_notifier_email_content( $message ) {
$message = 'This is our new email content that will override the default.';
return $message;
}
add_filter( 'sc_wpun_email_content', 'alter_wp_updates_notifier_email_content' );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon