ninja_forms_display_open_fields_wrap

Function that outputs an opening

tag for wrapping fields.

Description

ninja_forms_display_open_fields_wrap( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

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

Defined (1)

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

/deprecated/includes/display/form/fields-wrap.php  
  1. function ninja_forms_display_open_fields_wrap( $form_id ) { 
  2. $display = 1; 
  3.  
  4. $display = apply_filters( 'ninja_forms_display_fields_wrap_visibility', $display, $form_id ); 
  5.  
  6. if ( $display != 1 ) 
  7. $hide_class = " ninja-forms-no-display"; 
  8. else 
  9. $hide_class = ""; 
  10.  
  11. $wrap_class = ''; 
  12.  
  13. $wrap_class = apply_filters( 'ninja_forms_fields_wrap_class', $wrap_class, $form_id ); 
  14.  
  15. ?> 
  16. <div id="ninja_forms_form_<?php echo $form_id;?>_all_fields_wrap" class="ninja-forms-all-fields-wrap<?php echo $wrap_class;?><?php echo $hide_class;?>"> 
  17. <?php