cf_custom_fields_entry_details

Get entry details.

Description

(array) cf_custom_fields_entry_details( (array) $entry, (string) $entry_id, (array) $form ); 

Returns (array)

Parameters (3)

0. $entry (array)
Entry details
1. $entry_id (string)
The entry id.
2. $form (array)
The form.

Usage

  1. if ( !function_exists( 'cf_custom_fields_entry_details' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/to-post-type.php'; 
  3.  
  4. // Entry details 
  5. $entry = array(); 
  6.  
  7. // The entry id. 
  8. $entry_id = ''; 
  9.  
  10. // The form. 
  11. $form = array(); 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = cf_custom_fields_entry_details($entry, $entry_id, $form); 
  15.  

Defined (2)

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

/includes/to-post-type.php  
  1. function cf_custom_fields_entry_details($entry, $entry_id, $form) { 
  2.  
  3.  
  4. if($processor = cf_custom_fields_has_pr_processor($form, $entry_id)) { 
  5.  
  6. $entry = array( 
  7. 'id' => $entry_id,  
  8. 'form_id' => $form['ID'],  
  9. 'user_id' => $processor['post']->post_author,  
  10. 'datestamp' => $processor['post']->post_date 
  11. ); 
  12.  
  13.  
  14. return $entry; 
  15.  
  1. function cf_custom_fields_entry_details($entry, $entry_id, $form) { 
  2.  
  3.  
  4. if($processor = cf_custom_fields_has_pr_processor($form, $entry_id)) { 
  5.  
  6. $entry = array( 
  7. 'id' => $entry_id,  
  8. 'form_id' => $form['ID'],  
  9. 'user_id' => $processor['post']->post_author,  
  10. 'datestamp' => $processor['post']->post_date 
  11. ); 
  12.  
  13.  
  14. return $entry; 
  15.