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).
Usage
add_filter( 'wpmem_email_headers', 'my_wpmem_html_email' ); function my_wpmem_html_email() { return "Content-Type: text/html" . "\r\n"; }
Changelog
Since versionĀ 2.7.4
Moved to /inc/email.php in 3.0.0
Moved to /inc/class-wp-members-email.php in 3.2.0
Moved to /includes/class-wp-members-email.php in 3.3.0
Source
wpmem_email_headers is located in /includes/class-wp-members-email.php