cf_ajax_api_url

Get URL for API for processing a form.

Description

(string) cf_ajax_api_url( (string) $form_id ); 

Returns (string)

Parameters (1)

0. $form_id (string)
The form id.

Usage

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

Defined (1)

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

/includes/ajax.php  
  1. function cf_ajax_api_url( $form_id ) { 
  2.  
  3. return Caldera_Forms::get_submit_url( $form_id ); 
  4.