cf_form_process_ajax

The Caldera Forms cf form process ajax function.

Description

cf_form_process_ajax(); 

Usage

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

Defined (1)

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

/includes/ajax.php  
  1. function cf_form_process_ajax() { 
  2. // hook into submision 
  3. //_cf_cr_pst 
  4. global $post; 
  5. if( !empty( $_POST['_cf_cr_pst'] ) ) { 
  6. $post = get_post( (int) $_POST['_cf_cr_pst'] ); 
  7.  
  8. Caldera_Forms::process_form_via_post();