comment_notification_headers

comment_notification_headers

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_notification_headers') is found 1 times:

  • /wp-includes/pluggable.php line 1763
    		 *
    		 * @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 );