comment_notification_headers

comment_notification_headers

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_notification_headers') is found 1 times:

  • /wp-includes/pluggable.php line 1763
    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    *
     * @param string $message_headers Headers for the comment notification email.
     * @param string $comment_id      Comment ID as a numeric string.
     */
    $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID );
     
    foreach ( $emails as $email ) {
        $user = get_user_by( 'email', $email );
     
        if ( $user ) {
            $switched_locale = switch_to_user_locale( $user->ID );