ninja_forms_inside_label_hidden

The Ninja Forms ninja forms inside label hidden function.

Description

ninja_forms_inside_label_hidden( $field_id, $data ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'ninja_forms_inside_label_hidden' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/fields/inside-label-hidden.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_inside_label_hidden($field_id, $data); 
  12.  

Defined (1)

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

/deprecated/includes/display/fields/inside-label-hidden.php  
  1. function ninja_forms_inside_label_hidden( $field_id, $data ) { 
  2. if( isset( $data['label_pos'] ) AND $data['label_pos'] == 'inside' ) { 
  3. $plugin_settings = nf_get_settings(); 
  4.  
  5. if( isset( $data['label'] ) ) { 
  6. $label = $data['label']; 
  7. }else{ 
  8. $label = ''; 
  9.  
  10. ?> 
  11. <input type="hidden" id="ninja_forms_field_<?php echo $field_id;?>_label_hidden" value="<?php echo $label;?>"> 
  12. <?php