epm_get_option

Get an option.

Description

epm_get_option( (string) $key = '', (bool) $default = false ); 

Parameters (2)

0. $key — Optional. (string) => ''
The key.
1. $default — Optional. (bool) => false
The default.

Usage

  1. if ( !function_exists( 'epm_get_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'easy-peasy-mailchimp-ajax-form/includes/admin/settings/register-settings.php'; 
  3.  
  4. // The key. 
  5. $key = ''; 
  6.  
  7. // The default. 
  8. $default = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = epm_get_option($key, $default); 
  12.  

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. function epm_get_option( $key = '', $default = false ) { 
  2. global $epm_options; 
  3. $value = ! empty( $epm_options[ $key ] ) ? $epm_options[ $key ] : $default; 
  4. $value = apply_filters( 'epm_get_option', $value, $key, $default ); 
  5. return apply_filters( 'epm_get_option_' . $key, $value, $key, $default );