notify_post_author

notify_post_author

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('notify_post_author') is found 1 times:

  • /wp-includes/comment.php line 2402
    2398
    2399
    2400
    2401
    2402
    2403
    2404
    2405
    2406
    2407
    2408
    *
     * @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 ) {