comment_notification_recipients

comment_notification_recipients

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_notification_recipients') is found 1 times:

  • /wp-includes/pluggable.php line 1675
    1671
    1672
    1673
    1674
    1675
    1676
    1677
    1678
    1679
    1680
    1681
    *
     * @param string[] $emails     An array of email addresses to receive a comment notification.
     * @param string   $comment_id The comment ID as a numeric string.
     */
    $emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID );
    $emails = array_filter( $emails );
     
    // If there are no addresses to send the comment to, bail.
    if ( ! count( $emails ) ) {
        return false;
    }

See this hook used in plugins: