bp_email_get_unsubscribe_type_schema()
Get a list of emails for use in our unsubscribe functions.
Description
See also
Return
(array) The array of email types and their schema.
Source
File: bp-core/bp-core-functions.php
function bp_email_get_unsubscribe_type_schema() {
$emails = bp_email_get_type_schema( 'all' );
/**
* Filters the return of `bp_email_get_type_schema( 'all' )` for use with
* our unsubscribe functionality.
*
* @since BuddyPress 2.8.0
*
* @param array $emails The array of email types and their schema.
*/
return (array) apply_filters( 'bp_email_get_unsubscribe_type_schema', $emails );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.8.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.