apply_filters( 'bp_email_use_wp_mail', bool $wp_html_emails )
Filter this to skip BP’s email handling and instead send everything to wp_mail().
Description
This is done if wp_mail_content_type() has been configured for HTML, or if wp_mail() has been redeclared (it’s a pluggable function).
Parameters
- $wp_html_emails
-
|| ! $is_default_wpmail $is_default_wpmail Whether to fallback to the regular wp_mail() function or not.
Source
Changelog
Version | Description |
---|---|
BuddyPress 2.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.