epm_filter_validation

The Easy Peasy MailChimp Ajax Form epm filter validation hook.

Description

apply_filters( 'epm_filter_validation', (string) $enabled ); 

Parameters (1)

0. $enabled (string) => 'enabled'
The enabled.

Usage

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

Defined (1)

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

/includes/ajax.php  
  1. $epm_enable_validation = apply_filters( 'epm_filter_validation', 'enabled' ); //filter to disable/enable default validation messages