epm_get_settings

Retrieve all plugin settings.

Description

epm_get_settings(); 

Usage

  1. if ( !function_exists( 'epm_get_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_settings(); 
  7.  

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function epm_get_settings() { 
  2.  
  3. $settings = get_option( 'epm_settings' ); 
  4.  
  5. if( empty( $settings ) ) { 
  6. // Update old settings with new single option 
  7. $general_settings = is_array( get_option( 'epm_settings_general' ) ) ? get_option( 'epm_settings_general' ) : array(); 
  8. $settings = array_merge( $general_settings); 
  9. update_option( 'epm_settings', $settings ); 
  10. return apply_filters( 'epm_get_settings', $settings );