notify_post_author

notify_post_author

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('notify_post_author') is found 1 times:

  • /wp-includes/comment.php line 2402
    	 *
    	 * @param bool $maybe_notify Whether to notify the post author about the new comment.
    	 * @param int  $comment_id   The ID of the comment for the notification.
    	 */
    	$maybe_notify = apply_filters( 'notify_post_author', $maybe_notify, $comment_id );
    
    	/*
    	 * wp_notify_postauthor() checks if notifying the author of their own comment.
    	 * By default, it won't, but filters can override this.
    	 */
    	if ( ! $maybe_notify ) {