comment_moderation_headers

comment_moderation_headers

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comment_moderation_headers') is found 1 times:

  • /wp-includes/pluggable.php line 1951
    1947
    1948
    1949
    1950
    1951
    1952
    1953
    1954
    1955
    1956
    1957
    *
     * @param string $message_headers Headers for the comment moderation email.
     * @param int    $comment_id      Comment ID.
     */
    $message_headers = apply_filters( 'comment_moderation_headers', $message_headers, $comment_id );
     
    foreach ( $emails as $email ) {
        $user = get_user_by( 'email', $email );
     
        if ( $user ) {
            $switched_locale = switch_to_user_locale( $user->ID );