comment_notification_notify_author

comment_notification_notify_author

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('comment_notification_notify_author') is found 1 times:

  • /wp-includes/pluggable.php line 1713
    1709
    1710
    1711
    1712
    1713
    1714
    1715
    1716
    1717
    1718
    * @param bool   $notify     Whether to notify the post author of their own comment.
     *                           Default false.
     * @param string $comment_id The comment ID as a numeric string.
     */
    $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID );
     
    // The comment was left by the author.
    if ( $author && ! $notify_author && (int) $comment->user_id === (int) $post->post_author ) {
        unset( $emails[ $author->user_email ] );
    }