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
if ( !function_exists( 'ninja_forms_display_open_form_wrap' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/form/form-wrap.php'; } // The form id. $form_id = null; // NOTICE! Understand what this does before running. $result = ninja_forms_display_open_form_wrap($form_id);
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/display/form/form-wrap.php
- function ninja_forms_display_open_form_wrap($form_id) {
- global $ninja_forms_processing;
- //Check to see if the form_id has been sent.
- if($form_id == '') {
- 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.
- $form_id = absint( $_REQUEST['form_id'] );
- }
- }
- $wrap_class = '';
- $wrap_class = apply_filters( 'ninja_forms_form_wrap_class', $wrap_class, $form_id );
- ?>
- <div id="ninja_forms_form_<?php echo $form_id;?>_wrap" class="ninja-forms-form-wrap<?php echo $wrap_class; ?>">
- <?php