ninja_forms_pre_process

The Ninja Forms ninja forms pre process function.

Description

ninja_forms_pre_process(); 

Usage

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

Defined (1)

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

/deprecated/includes/display/processing/pre-process.php  
  1. function ninja_forms_pre_process() { 
  2. global $ninja_forms_processing; 
  3.  
  4. $ajax = $ninja_forms_processing->get_form_setting('ajax'); 
  5. $form_id = $ninja_forms_processing->get_form_ID(); 
  6.  
  7.  
  8. if(!$ninja_forms_processing->get_all_errors()) { 
  9.  
  10. if(!$ninja_forms_processing->get_all_errors()) { 
  11. }else{ 
  12. if($ajax == 1) { 
  13. //header('Content-Type', 'application/json'); 
  14. echo $json; 
  15. die(); 
  16. }else{ 
  17. //echo 'pre-processing'; 
  18. //print_r($ninja_forms_processing->get_all_errors());