epm_settings_general

General Settings.

Description

apply_filters( 'epm_settings_general', (callback) $var ); 

Parameters (1)

0. $var — Optional. (callback) => array( 'mailchimp_api_key' => array( 'id' => 'mailchimp_api_key', 'name' => __( 'Your MailChimp API Key', 'epm' ), 'desc' => __( 'Enter your MailChimp API key here. Where can I find my api key?', 'epm' ), 'type' => 'text' ), 'mailchimp_list_id' => array( 'id' => 'mailchimp_list_id', 'name' => __( 'Your MailChimp List ID', 'epm' ), 'desc' => __( 'Enter your MailChimp List ID here. Where can I find my list ID?', 'epm' ), 'type' => 'text' ), 'display_name_fields' => array( 'id' => 'display_name_fields', 'name' => __( 'Display Name Fields?', 'epm' ), 'desc' => __( 'Enable this option if you wish to enable the first name and last name field into the signup form.', 'epm' ), 'type' => 'checkbox' ), 'enable_double_optin' => array( 'id' => 'enable_double_optin', 'name' => __( 'Enable Double Optin', 'epm' ), 'desc' => __( 'Check this box to control whether a double opt-in confirmation message is sent.', 'epm' ), 'type' => 'checkbox' ), 'send_welcome_message' => array( 'id' => 'send_welcome_message', 'name' => __( 'Send Welcome Message?', 'epm' ), 'desc' => __( 'Check this box if you would like to send your welcome message.

Note: if your double optin is disabled and this option is enabled, MailChimp will send your lists Welcome Email if this subscribe succeeds.
A welcome email will not be sent in case of updating an existing subscriber.
If Double optin is enabled, this option has no effect.', 'epm' ), 'type' => 'checkbox' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'epm_settings_general', $var ); 
  2.  
  3. if ( !empty( $var ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the epm_settings_general callback 
  2. function filter_epm_settings_general( $var ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'epm_settings_general', 'filter_epm_settings_general', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'epm_settings_general', 'filter_epm_settings_general', 10, 1 ); 

Defined (1)

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

/includes/admin/settings/register-settings.php  
  1. 'general' => apply_filters( 'epm_settings_general',