ninja_forms_display_hidden_fields

The Ninja Forms ninja forms display hidden fields function.

Description

ninja_forms_display_hidden_fields( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

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

Defined (1)

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

/deprecated/includes/display/form/hidden-fields.php  
  1. function ninja_forms_display_hidden_fields($form_id) { 
  2. global $ninja_forms_processing; 
  3. ?> 
  4. <input type="hidden" name="_ninja_forms_display_submit" value="1"> 
  5. <input type="hidden" name="_form_id" id="_form_id" value="<?php echo $form_id;?>"> 
  6. <?php 
  7. if( is_object( $ninja_forms_processing) AND $ninja_forms_processing->get_all_errors()) { 
  8. ?> 
  9. <input type="hidden" id="ninja_forms_processing_error" value="1"> 
  10. <?php