ninja_forms_process

The Ninja Forms ninja forms process function.

Description

ninja_forms_process(); 

Usage

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

Defined (1)

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

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