ID) && isset($post->post_type) ) {
if ( $post->post_type == self::POSTTYPE ) {
$post_type = '_Event';
} elseif ( $post->post_type == self::VENUE_POST_TYPE ) {
$post_type = '_Venue';
} elseif ( $post->post_type == self::ORGANIZER_POST_TYPE ) {
$post_type = '_Organizer';
} else {
return;
}
}
$audit_trail = get_post_meta($post->ID, $post_type.'AuditTrail', true);
$audit_trail_display = '';
foreach( $audit_trail as $at ){
$audit_trail_display .= date('Y-m-d g:i:s a', $at[1]) .' : '. $at[0].'
';
}
?>
| ID, $post_type.'Origin', true); ?> | |