ninja_forms_add_field_desc

The Ninja Forms ninja forms add field desc function.

Description

ninja_forms_add_field_desc( $field_id, $data ); 

Parameters (2)

0. $field_id
The field id.
1. $data
The data.

Usage

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

Defined (1)

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

/deprecated/includes/display/fields/desc.php  
  1. function ninja_forms_add_field_desc( $field_id, $data ) { 
  2. $plugin_settings = nf_get_settings(); 
  3.  
  4. if ( isset( $data['desc_pos'] ) ) { 
  5. $desc_pos = $data['desc_pos']; 
  6. } else { 
  7. $desc_pos = 'none'; 
  8.  
  9. if ( $desc_pos == 'none' ) { 
  10. } elseif ( $desc_pos == 'before_everything' ) { 
  11. } elseif ( $desc_pos == 'before_label' ) { 
  12. } elseif ( $desc_pos == 'after_label' ) { 
  13. } elseif ( $desc_pos == 'after_everything' ) { 
  14.