ninja_forms_session_class_setup

Function that checks to see if session variables have been set that indicate we are on a success page.

Description

ninja_forms_session_class_setup(); 

If we are, intialize the global processing class for access to the form's settings and user values.


Usage

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

Defined (1)

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

/deprecated/includes/display/form/display-form.php  
  1. function ninja_forms_session_class_setup() { 
  2. $cache = Ninja_Forms()->session->get( 'nf_cache' ); 
  3. if ( $cache && ! is_admin() ) {