ninja_forms_preview_form

The Ninja Forms ninja forms preview form function.

Description

ninja_forms_preview_form(); 

Usage

  1. if ( !function_exists( 'ninja_forms_preview_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/form-preview.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_preview_form(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/form-preview.php  
  1. function ninja_forms_preview_form() { 
  2. global $ninja_forms_append_page_form_id; 
  3. if( ! empty ( $_REQUEST['form_id'] ) AND ! empty ( $_REQUEST['preview'] ) ) { //I 
  4. $form_id = absint( $_REQUEST['form_id'] ); 
  5. $ninja_forms_append_page_form_id = array($form_id); 
  6. add_filter( 'the_content', 'ninja_forms_append_to_page', 9999 );