답변을 찾았습니다!
나는 편집자 역할을 가진 새로운 사용자를 만들었습니다. 새로운 작성한 편집자 사용자에게 알림을 보내려면 코드 다음에 편집자 사용자 ID "5"를 추가하십시오.
function se_comment_moderation_recipients($emails, $comment_id) {
$comment = get_comment($comment_id);
$post = get_post($comment->comment_post_ID);
$user = get_user_by('id', '5');
// Return only the post author if the author can modify.
if (user_can($user->ID, 'edit_published_posts') && ! empty($user->user_email)) {
$emails = array($user->user_email);
}
return $emails;
}
add_filter('comment_moderation_recipients', 'se_comment_moderation_recipients', 11, 2);
add_filter('comment_notification_recipients', 'se_comment_moderation_recipients', 11, 2);
Reference
그리고이 작품!