111111 大家看看我这个咋处理
`/**
https://www.ilxtx.com/how-to-prevent-someone-posing-as-bloggers-in-wordpress.html
*/
add_filter( ‘preprocess_comment’, ‘lxtx_check_comment_author’ );
function lxtx_check_comment_author($incoming_comment) {
if ( is_user_logged_in() ) return $incoming_comment;
$isSpam = 0;
// 将以下代码中的 lxtx 改成博主昵称
if (trim($incoming_comment[‘comment_author’]) == ‘lxtx’){
$isSpam = 1;
}
// 将以下代码中的 example#ilxtx.com 改成博主 Email
if (trim($incoming_comment[‘comment_author_email’]) == ‘example#ilxtx.com’){
$isSpam = 1;
}
if(!$isSpam) return $incoming_comment;
wp_die(‘请勿冒充博主发表评论’);
}`
更好地交付更好的项目。网站,设计和插件资源