ninja_forms_display_open_form_wrap

The Ninja Forms ninja forms display open form wrap function.

Description

ninja_forms_display_open_form_wrap( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

  1. if ( !function_exists( 'ninja_forms_display_open_form_wrap' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/form/form-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_form_wrap($form_id); 
  9.  

Defined (1)

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

/deprecated/includes/display/form/form-wrap.php  
  1. function ninja_forms_display_open_form_wrap($form_id) { 
  2. global $ninja_forms_processing; 
  3. //Check to see if the form_id has been sent. 
  4. if($form_id == '') { 
  5. if(isset($_REQUEST['form_id'])) { //If it hasn't, set it to our requested form_id. Sometimes this function can be called without an expressly passed form_id. 
  6. $form_id = absint( $_REQUEST['form_id'] ); 
  7.  
  8. $wrap_class = ''; 
  9.  
  10. $wrap_class = apply_filters( 'ninja_forms_form_wrap_class', $wrap_class, $form_id ); 
  11.  
  12. ?> 
  13. <div id="ninja_forms_form_<?php echo $form_id;?>_wrap" class="ninja-forms-form-wrap<?php echo $wrap_class; ?>"> 
  14. <?php