bp_email_get_appearance_settings

Return email appearance settings.

Description

(array) bp_email_get_appearance_settings(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bp_email_get_appearance_settings' ) ) { 
  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_appearance_settings(); 
  7.  

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_email_get_appearance_settings() { 
  2. $default_args = array( 
  3. 'body_bg' => '#FFFFFF',  
  4. 'body_text_color' => '#555555',  
  5. 'body_text_size' => 15,  
  6. 'email_bg' => '#F7F3F0',  
  7. 'footer_bg' => '#F7F3F0',  
  8. 'footer_text_color' => '#525252',  
  9. 'footer_text_size' => 12,  
  10. 'header_bg' => '#F7F3F0',  
  11. 'highlight_color' => '#D84800',  
  12. 'header_text_color' => '#000000',  
  13. 'header_text_size' => 30,  
  14.  
  15. 'footer_text' => sprintf( 
  16. /** translators: email disclaimer, e.g. " 2016 Site Name". */ 
  17. _x( '© %s %s', 'email', buddypress ),  
  18. date_i18n( 'Y' ),  
  19. bp_get_option( 'blogname' ) 
  20. ),  
  21. ); 
  22.  
  23. return bp_parse_args
  24. bp_get_option( 'bp_email_options', array() ),  
  25. $default_args,  
  26. 'email_appearance_settings' 
  27. );