epm_get_registered_settings

Retrieve the array of plugin settings.

Description

(array) epm_get_registered_settings(); 

Returns (array)


Usage

  1. if ( !function_exists( 'epm_get_registered_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/admin/settings/register-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = epm_get_registered_settings(); 
  7.  

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function epm_get_registered_settings() { 
  2.  
  3. /** 
  4. * Plugin settings, filters are provided for each settings so it can be extended. 
  5. */ 
  6. $epm_settings = array( 
  7. /** General Settings */ 
  8. 'general' => apply_filters( 'epm_settings_general',  
  9. array( 
  10. 'mailchimp_api_key' => array( 
  11. 'id' => 'mailchimp_api_key',  
  12. 'name' => __( 'Your MailChimp API Key', 'epm' ),  
  13. 'desc' => __( 'Enter your MailChimp API key here. <a href="http://kb.mailchimp.com/article/where-can-i-find-my-api-key" target="_blank">Where can I find my api key?</a>', 'epm' ),  
  14. 'type' => 'text' 
  15. ),  
  16. 'mailchimp_list_id' => array( 
  17. 'id' => 'mailchimp_list_id',  
  18. 'name' => __( 'Your MailChimp List ID', 'epm' ),  
  19. 'desc' => __( 'Enter your MailChimp List ID here. <a href="http://kb.mailchimp.com/article/how-can-i-find-my-list-id" target="_blank">Where can I find my list ID?</a>', 'epm' ),  
  20. 'type' => 'text' 
  21. ),  
  22. 'display_name_fields' => array( 
  23. 'id' => 'display_name_fields',  
  24. 'name' => __( 'Display Name Fields?', 'epm' ),  
  25. 'desc' => __( 'Enable this option if you wish to enable the first name and last name field into the signup form.', 'epm' ),  
  26. 'type' => 'checkbox' 
  27. ),  
  28. 'enable_double_optin' => array( 
  29. 'id' => 'enable_double_optin',  
  30. 'name' => __( 'Enable Double Optin', 'epm' ),  
  31. 'desc' => __( 'Check this box to control whether a double opt-in confirmation message is sent.', 'epm' ),  
  32. 'type' => 'checkbox' 
  33. ),  
  34. 'send_welcome_message' => array( 
  35. 'id' => 'send_welcome_message',  
  36. 'name' => __( 'Send Welcome Message?', 'epm' ),  
  37. 'desc' => __( 'Check this box if you would like to send your welcome message. <br/><br/><strong>Note:</strong> if your double optin is disabled and this option is enabled, MailChimp will send your lists Welcome Email if this subscribe succeeds. <br/>A welcome email will not be sent in case of updating an existing subscriber. <br/>If Double optin is enabled, this option has no effect.', 'epm' ),  
  38. 'type' => 'checkbox' 
  39. ),  
  40.  
  41. ); 
  42.  
  43. return $epm_settings;