cf_custom_fields_prevent_redirect

Prevent redirect.

Description

cf_custom_fields_prevent_redirect( (string) $url, (array) $form, (array) $process_id ); 

Parameters (3)

0. $url (string)
Redirect URL
1. $form (array)
Submission data.
2. $process_id (array)
The process id.

Usage

  1. if ( !function_exists( 'cf_custom_fields_prevent_redirect' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/metabox.php'; 
  3.  
  4. // Redirect URL 
  5. $url = ''; 
  6.  
  7. // Submission data. 
  8. $form = array(); 
  9.  
  10. // The process id. 
  11. $process_id = array(); 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = cf_custom_fields_prevent_redirect($url, $form, $process_id); 
  15.  

Defined (2)

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

/includes/metabox.php  
  1. function cf_custom_fields_prevent_redirect($url, $form, $process_id) { 
  2.  
  3. if( !empty($form['is_metabox'])) { 
  4. return false; 
  5.  
  6. return $url; 
  1. function cf_custom_fields_prevent_redirect($url, $form, $process_id) { 
  2.  
  3. if( !empty($form['is_metabox'])) { 
  4. return false; 
  5.  
  6. return $url;