cf_custom_fields_save_post

Process data on post save.

Description

cf_custom_fields_save_post(); 

Usage

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

Defined (2)

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

/includes/metabox.php  
  1. function cf_custom_fields_save_post() { 
  2.  
  3. if(is_admin()) { 
  4. if(isset($_POST['cf_metabox_forms'])) { 
  5.  
  6. foreach( $_POST['cf_metabox_forms'] as $metaForm ) { 
  7. // add filter to get details of entry 
  8. $_POST['_cf_frm_id'] = $metaForm; 
  9. Caldera_Forms::process_submission(); 
  10.  
  1. function cf_custom_fields_save_post() { 
  2.  
  3. if(is_admin()) { 
  4. if(isset($_POST['cf_metabox_forms'])) { 
  5.  
  6. foreach( $_POST['cf_metabox_forms'] as $metaForm ) { 
  7. // add filter to get details of entry 
  8. $_POST['_cf_frm_id'] = $metaForm; 
  9. Caldera_Forms::process_submission(); 
  10.