comment_notification_notify_author WordPress Filter Hook

The comment_notification_notify_author WordPress hook is used to notify the author of a comment when a comment is made on their post. This hook is triggered when a comment is made on a post, and the author of the post is not the current user.

apply_filters( 'comment_notification_notify_author', bool $notify, string $comment_id ) #

Filters whether to notify comment authors of their comments on their own posts.


Description

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


Top ↑

Parameters

$notify

(bool)Whether to notify the post author of their own comment. Default false.

$comment_id

(string)The comment ID as a numeric string.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More