nf_deprecate_field_import

The Ninja Forms nf deprecate field import function.

Description

nf_deprecate_field_import( $data ); 

Parameters (1)

0. $data
The data.

Usage

  1. if ( !function_exists( 'nf_deprecate_field_import' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/deprecated.php'; 
  3.  
  4. // The data. 
  5. $data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_deprecate_field_import($data); 
  9.  

Defined (1)

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

/deprecated/includes/deprecated.php  
  1. function nf_deprecate_field_import( $data ) { 
  2. if ( isset ( $data['send_email'] ) ) 
  3. unset ( $data['send_email'] ); 
  4.  
  5. if ( isset ( $data['from_email'] ) ) 
  6. unset ( $data['from_email'] ); 
  7.  
  8. if ( isset ( $data['replyto_email'] ) ) 
  9. unset ( $data['replyto_email'] ); 
  10.  
  11. return $data;