[WordPress] 外掛分享: Comments Users Mentions

首頁外掛目錄 › Comments Users Mentions
10+
安裝啟用
★★★★★
5/5 分(3 則評價)
4409 天前
最後更新
問題解決
WordPress 3.1+ v0.2 上架:2014-02-17

內容簡介

這個外掛讓你可以在評論中提及 WordPress 使用者,只需在用戶名前加上一個字符(預設為 @),例如 @guguweb。
被提及的使用者將會收到通知電子郵件,其中包含連結到相關文章的鏈接。

提及字符(預設為 @)可以通過篩選器鉤子進行自定義:cum-mention-char。將以下代碼放入您的主題 functions.php 文件中:

add_filter( 'cum-mention-char', 'cum_custom_char' );
function cum_custom_char( $content ) {
return '+';
}

之後提及字符將會是 + ,所以你可以使用 +guguweb 進行提及。

此插件的靈感來自Wabeo的 Mention comment's Authors。非常感謝作者!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Comments Users Mentions」→ 直接安裝(推薦)

原文外掛簡介

This plugin allows to mention WordPress users in a comment by writing usernames preceded by a character (default @), e.g. @guguweb.
The mentioned users will receive a notification email with a link to the relevant post.
The mention character (default @) can be customized by a filter hook: cum-mention-char. Put the following code in your theme functions.php file:
add_filter( 'cum-mention-char', 'cum_custom_char' );
function cum_custom_char( $content ) {
return '+';
}

And the mention character will be +, so you can mention with +guguweb.
This plugin was inspired by Mention comment’s Authors by Wabeo. Many thanks to the author!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon