bp_email_get_customizer_sections

Get Customizer sections for emails.

Description

(array) bp_email_get_customizer_sections(); 

Returns (array)


Usage

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

Defined (1)

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

/bp-core/bp-core-customizer-email.php  
  1. function bp_email_get_customizer_sections() { 
  2.  
  3. /** 
  4. * Filter Customizer sections for emails. 
  5. * @since 2.5.0 
  6. * @param array $sections Email Customizer sections to add. 
  7. */ 
  8. 'section_bp_mailtpl_header' => array( 
  9. 'capability' => 'bp_moderate',  
  10. 'panel' => 'bp_mailtpl',  
  11. 'title' => _x( 'Header', 'email', buddypress ),  
  12. ),  
  13. 'section_bp_mailtpl_body' => array( 
  14. 'capability' => 'bp_moderate',  
  15. 'panel' => 'bp_mailtpl',  
  16. 'title' => _x( 'Body', 'email', buddypress ),  
  17. ),  
  18. 'section_bp_mailtpl_footer' => array( 
  19. 'capability' => 'bp_moderate',  
  20. 'panel' => 'bp_mailtpl',  
  21. 'title' => _x( 'Footer', 'email', buddypress ),  
  22. ),  
  23. ) );