內容簡介
這個外掛讓你可以在評論中提及 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。非常感謝作者!
外掛標籤
開發者團隊
原文外掛簡介
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!
