bp_email_get_unsubscribe_type_schema

Get a list of emails for use in our unsubscribe functions.

Description

(array) bp_email_get_unsubscribe_type_schema(); 

Returns (array)

The array of email types and their schema.


Usage

  1. if ( !function_exists( 'bp_email_get_unsubscribe_type_schema' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_email_get_unsubscribe_type_schema(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-functions.php  
  1. function bp_email_get_unsubscribe_type_schema() { 
  2. $emails = bp_email_get_type_schema( 'all' ); 
  3.  
  4. /** 
  5. * Filters the return of `bp_email_get_type_schema( 'all' )` for use with 
  6. * our unsubscribe functionality. 
  7. * @since 2.8.0 
  8. * @param array $emails The array of email types and their schema. 
  9. */