Description

This hook will allow you to filter the email headers that are sent through wp_mail.

Parameters

$default_headers
(mixed)(required) The email headers.

$toggle
(string)(optional) Toggle to determine what email is being generated (newreg|newmod|appmod|repass|admin).

Changelog

Since version 2.7.4

Source

wpmem_email_headers is located in wp-members-email.php

Usage

add_filter( 'wpmem_email_headers', 'my_email_headers', 10, 2 );

function my_email_headers( $default_headers, $toggle ) {

	$headers = 'From: My Name <myname@mydomain.com>' . "\r\n";
	return $headers;
}

Examples

See a list of all filter and action hooks

Private

You do not have permission to view this forum.