Filter hook 'comment_notification_notify_author'

in WP Core File wp-includes/pluggable.php at line 1698

Description

Filters whether to notify comment authors of their comments on their own posts. By default, comment authors aren't notified of their comments on their own posts. This filter allows you to override that.

Occurrences

Filename Line Number
wp-includes/pluggable.php 1698

Parameters

Type Name Description
bool $notify Whether to notify the post author of their own comment. Default false.
string $comment_id The comment ID as a numeric string.

PHP Doc

/**
		 * Filters whether to notify comment authors of their comments on their own posts.
		 *
		 * By default, comment authors aren't notified of their comments on their own
		 * posts. This filter allows you to override that.
		 *
		 * @since 3.8.0
		 *
		 * @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.
		 */