cf_custom_fields_meta_view

Prepare DB storage.

Description

cf_custom_fields_meta_view( $meta ); 

Parameters (1)

0. $meta
The meta.

Usage

  1. if ( !function_exists( 'cf_custom_fields_meta_view' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/to-post-type.php'; 
  3.  
  4. // The meta. 
  5. $meta = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cf_custom_fields_meta_view($meta); 
  9.  

Defined (2)

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

/includes/to-post-type.php  
  1. function cf_custom_fields_meta_view($meta) { 
  2. $postid = $meta['meta_value']; 
  3. $meta['meta_key'] = _('Post Name', 'caldera-forms-metabox' ); 
  4. $meta['meta_value'] = get_the_title($meta['meta_value']); 
  5. $meta['meta_value'] .= '<div><a href="post.php?post='.$postid.'&action=edit" target="_blank">'.__('Edit').'</a> | <a href="' . get_permalink( $postid ) . '" target="_blank">'.__('View').'</a></div>'; 
  6. $meta['post'] = get_post( $postid ); 
  7. return $meta; 
  1. function cf_custom_fields_meta_view($meta) { 
  2. $postid = $meta['meta_value']; 
  3. $meta['meta_key'] = _('Post Name', 'caldera-forms-metabox' ); 
  4. $meta['meta_value'] = get_the_title($meta['meta_value']); 
  5. $meta['meta_value'] .= '<div><a href="post.php?post='.$postid.'&action=edit" target="_blank">'.__('Edit').'</a> | <a href="' . get_permalink( $postid ) . '" target="_blank">'.__('View').'</a></div>'; 
  6. $meta['post'] = get_post( $postid ); 
  7. return $meta;