bp_email_get_customizer_settings

Get Customizer settings for emails.

Description

(array) bp_email_get_customizer_settings(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bp_email_get_customizer_settings' ) ) { 
  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_settings(); 
  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_settings() { 
  2.  
  3. /** 
  4. * Filter Customizer settings for emails. 
  5. * @since 2.5.0 
  6. * @param array $settings Email Customizer settings to add. 
  7. */ 
  8. 'bp_email_options[email_bg]' => array( 
  9. 'capability' => 'bp_moderate',  
  10. 'default' => $defaults['email_bg'],  
  11. 'sanitize_callback' => 'sanitize_hex_color',  
  12. 'transport' => 'postMessage',  
  13. 'type' => 'option',  
  14. ),  
  15. 'bp_email_options[header_bg]' => array( 
  16. 'capability' => 'bp_moderate',  
  17. 'default' => $defaults['header_bg'],  
  18. 'sanitize_callback' => 'sanitize_hex_color',  
  19. 'transport' => 'postMessage',  
  20. 'type' => 'option',  
  21. ),  
  22. 'bp_email_options[header_text_size]' => array( 
  23. 'capability' => 'bp_moderate',  
  24. 'default' => $defaults['header_text_size'],  
  25. 'sanitize_callback' => 'absint',  
  26. 'transport' => 'postMessage',  
  27. 'type' => 'option',  
  28. ),  
  29. 'bp_email_options[header_text_color]' => array( 
  30. 'capability' => 'bp_moderate',  
  31. 'default' => $defaults['header_text_color'],  
  32. 'sanitize_callback' => 'sanitize_hex_color',  
  33. 'transport' => 'postMessage',  
  34. 'type' => 'option',  
  35. ),  
  36. 'bp_email_options[highlight_color]' => array( 
  37. 'capability' => 'bp_moderate',  
  38. 'default' => $defaults['highlight_color'],  
  39. 'sanitize_callback' => 'sanitize_hex_color',  
  40. 'transport' => 'postMessage',  
  41. 'type' => 'option',  
  42. ),  
  43. 'bp_email_options[body_bg]' => array( 
  44. 'capability' => 'bp_moderate',  
  45. 'default' => $defaults['body_bg'],  
  46. 'sanitize_callback' => 'sanitize_hex_color',  
  47. 'transport' => 'postMessage',  
  48. 'type' => 'option',  
  49. ),  
  50. 'bp_email_options[body_text_size]' => array( 
  51. 'capability' => 'bp_moderate',  
  52. 'default' => $defaults['body_text_size'],  
  53. 'sanitize_callback' => 'absint',  
  54. 'transport' => 'postMessage',  
  55. 'type' => 'option',  
  56. ),  
  57. 'bp_email_options[body_text_color]' => array( 
  58. 'capability' => 'bp_moderate',  
  59. 'default' => $defaults['body_text_color'],  
  60. 'sanitize_callback' => 'sanitize_hex_color',  
  61. 'transport' => 'postMessage',  
  62. 'type' => 'option',  
  63. ),  
  64. 'bp_email_options[footer_text]' => array( 
  65. 'capability' => 'bp_moderate',  
  66. 'default' => $defaults['footer_text'],  
  67. 'sanitize_callback' => 'wp_filter_post_kses',  
  68. 'transport' => 'postMessage',  
  69. 'type' => 'option',  
  70. ),  
  71. 'bp_email_options[footer_bg]' => array( 
  72. 'capability' => 'bp_moderate',  
  73. 'default' => $defaults['footer_bg'],  
  74. 'sanitize_callback' => 'sanitize_hex_color',  
  75. 'transport' => 'postMessage',  
  76. 'type' => 'option',  
  77. ),  
  78. 'bp_email_options[footer_text_size]' => array( 
  79. 'capability' => 'bp_moderate',  
  80. 'default' => $defaults['footer_text_size'],  
  81. 'sanitize_callback' => 'absint',  
  82. 'transport' => 'postMessage',  
  83. 'type' => 'option',  
  84. ),  
  85. 'bp_email_options[footer_text_color]' => array( 
  86. 'capability' => 'bp_moderate',  
  87. 'default' => $defaults['footer_text_color'],  
  88. 'sanitize_callback' => 'sanitize_hex_color',  
  89. 'transport' => 'postMessage',  
  90. 'type' => 'option',  
  91. ),  
  92. ) );