[wordpress插件] Comments Users Mentions评论用户提及

wordpress 插件 文章 2020-03-29 09:30 455 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin allows to mention WordPress users in a comment by writing usernames preceded by a character (default @), e.g.

此插件可通过在用户名前添加字符(默认为@)(例如,

@guguweb.

@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.

提及字符(默认@)可以通过过滤钩子 cum-mention-char 进行自定义。

Put the following code in your theme functions.php file:

将以下代码放入主题 functions.php 文件中:

add_filter( 'cum-mention-char', 'cum_custom_char' );

  add_filter('cum-mention-char','cum_custom_char');

function cum_custom_char( $content ) {    

函数cum_custom_char($ content){    

return '+';

返回'+';

}

}

And the mention character will be +, so you can mention with +guguweb.

并且提及字符为+,因此您可以通过 + guguweb 提及。

This plugin was inspired by Mention comment’s Authors by Wabeo.

此插件的灵感来自 Mention评论的Authors by Wabeo

Many thanks to the author!

非常感谢作者

安装步骤

    1. Upload the plugin’s folder into /wp-content/plugins/ directory
    2. 将插件的文件夹上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. All done !
    6. 全部完成!

下载地址
https://downloads.wordpress.org/plugin/comments-users-mentions.zip
-EOF-

AI助手支持GPT4.0