summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/pluggable-functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/pluggable-functions.php')
-rw-r--r--wp-inst/wp-includes/pluggable-functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/pluggable-functions.php b/wp-inst/wp-includes/pluggable-functions.php
index 63fe56f..cb24b8c 100644
--- a/wp-inst/wp-includes/pluggable-functions.php
+++ b/wp-inst/wp-includes/pluggable-functions.php
@@ -268,6 +268,10 @@ function wp_notify_postauthor($comment_id, $comment_type='') {
. "$from\n"
. "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
+ $notify_message = apply_filters('comment_notification_text', $notify_message);
+ $subject = apply_filters('comment_notification_subject', $subject);
+ $message_headers = apply_filters('comment_notification_headers', $message_headers);
+
@wp_mail($user->user_email, $subject, $notify_message, $message_headers);
return true;
@@ -305,7 +309,10 @@ function wp_notify_moderator($comment_id) {
$notify_message .= get_settings('siteurl') . "/wp-admin/moderation.php\r\n";
$subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_settings('blogname'), $post->post_title );
- $admin_email = get_settings("admin_email");
+ $admin_email = get_settings('admin_email');
+
+ $notify_message = apply_filters('comment_moderation_text', $notify_message);
+ $subject = apply_filters('comment_moderation_subject', $subject);
@wp_mail($admin_email, $subject, $notify_message);