comment_author_email)) { return false; } // 获取文章信息 $post = get_post($comment->comment_post_ID); if (!$post) { return false; } // 准备模板变量 $vars = array( 'post_title' => $post->post_title, 'post_url' => get_permalink($post->ID), 'original_username' => $original_username, 'new_username' => $new_username, 'ai_reason' => $reason, 'ai_detection_code' => $detection_code, 'comment_url' => get_comment_link($comment), ); // 发送邮件 return argon_send_email($comment->comment_author_email, 'username_change_notify', $vars); }