Filters the wp_mail() content type.
$content_typestring
text/plain‘ which does not allow using HTML. However, you can use the wp_mail_content_type filter to change the default content type of the email.text/plain‘ as the default, or ‘text/html‘ for HTML email; but other MIME types are possible.$content_type = apply_filters( 'wp_mail_content_type', $content_type );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mail_content_type