I’m desirous to edit the content material that’s despatched to admins within the remark moderation e-mail notification. I’ve checked out a number of locations and so they all appear to present roughly the identical instance to realize this, however it is not working for me.
I’m including this to my capabilities.php file:
add_filter('comment_notification_text', 'my_comment_notification_text', 10, 2);
operate my_comment_notification_text($notify_message, $comment_id) {
return $notify_message . ' That is some additional textual content that I wish to add';
}
The extra textual content is not being added to the notification. What am I doing incorrect?