WPDev.one
Core Function
View Source on Trac ↗

wp_new_comment_notify_postauthor()

wp_new_comment_notify_postauthor( mixed $comment_id )

Sends a notification of a new comment to the post author.

Parameters 1 required

Name / Type Description
$comment_id
int

Comment ID.

Required

Return Value

(bool)
True on success, false on failure.

Function Information

Since Version
4.4.0 Uses the {@see 'notify_post_author'} filter to determine whether the post author should be notified when a new comment is added, overriding site setting.
Source File
wp-includes/comment.php
Advertisement