comment_notification_notify_author

comment_notification_notify_author

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_notification_notify_author') is found 1 times:

  • /wp-includes/pluggable.php line 1698
    		 * @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 ] );
    		}