cf_custom_fields_get_post_details

Get details from entry.

Description

(array) cf_custom_fields_get_post_details( $details, $entry, $form ); 

Returns (array)

Parameters (3)

0. $details
The details.
1. $entry
The entry.
2. $form
The form.

Usage

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

Defined (1)

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

/includes/metabox.php  
  1. function cf_custom_fields_get_post_details($details, $entry, $form) { 
  2. global $post; 
  3.  
  4. return array( 
  5. 'id' => $post->ID,  
  6. 'form_id' => $form['ID'],  
  7. 'user_id' => get_current_user_id(),  
  8. 'datestamp' => $post->post_date 
  9. );