notify_post_author WordPress Filter Hook

The notify_post_author hook is triggered when a new post is published. It allows you to notify the post author about the new post.

apply_filters( 'notify_post_author', bool $maybe_notify, int $comment_ID ) #

Filters whether to send the post author new comment notification emails, overriding the site setting.


Parameters

$maybe_notify

(bool)Whether to notify the post author about the new comment.

$comment_ID

(int)The ID of the comment for the notification.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.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
Show More