ninja_forms_register_filter_email_add_fields

The WordPress Core ninja forms register filter email add fields function.

Description

ninja_forms_register_filter_email_add_fields(); 

Usage

  1. if ( !function_exists( 'ninja_forms_register_filter_email_add_fields' ) ) { 
  2. require_once '/deprecated/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_register_filter_email_add_fields(); 
  7.  

Defined (1)

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

/deprecated/includes/deprecated.php  
  1. function ninja_forms_register_filter_email_add_fields() { 
  2. global $ninja_forms_processing; 
  3.  
  4. if( is_object( $ninja_forms_processing ) ) { 
  5. if( $ninja_forms_processing->get_form_setting( 'user_email_fields' ) == 1 ) { 
  6. add_filter( 'ninja_forms_user_email', 'ninja_forms_filter_email_add_fields' ); 
  7.  
  8. if( is_object( $ninja_forms_processing ) ) { 
  9. if( $ninja_forms_processing->get_form_setting( 'admin_email_fields' ) == 1 ) { 
  10. add_filter( 'ninja_forms_admin_email', 'ninja_forms_filter_email_add_fields' );