ninja_forms_edit_field

The Ninja Forms ninja forms edit field function.

Description

ninja_forms_edit_field( $field_id, (bool) $new = false ); 

Parameters (2)

0. $field_id
The field id.
1. $new — Optional. (bool) => false
The new.

Usage

  1. if ( !function_exists( 'ninja_forms_edit_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/edit-field/edit-field.php'; 
  3.  
  4. // The field id. 
  5. $field_id = null; 
  6.  
  7. // The new. 
  8. $new = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = ninja_forms_edit_field($field_id, $new); 
  12.  

Defined (1)

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

/deprecated/includes/admin/edit-field/edit-field.php  
  1. function ninja_forms_edit_field( $field_id, $new = false ) { 
  2. global $wpdb, $ninja_forms_fields; 
  3.  
  4. do_action( 'ninja_forms_edit_field_before_li', $field_id, $new ); 
  5. do_action( 'ninja_forms_edit_field_li', $field_id, $new ); 
  6. do_action( 'ninja_forms_edit_field_after_li', $field_id, $new ); 
  7.