From WP codex:
comment_moderation_text: applied to the body of the mail message before sending email notifying the administrator of the need to moderate a new comment. Filter function arguments: mail body text, comment ID.
Nevertheless, when I put in my functions.php:
function x99($textMsg, $comId) {
if (is_null($comId)) {
return "empty";
} else {
return ($textMsg);
}
}
add_filter("comment_notification_text", "x99");
the notification message body is "empty". So comment ID is null. Why? How can I retrieve it?