/** * Returns custom meta. * * @param string $meta_id The meta group this is in. * @return string The custom meta. * @author Timothy Wood * @since 3.0 */ public static function custom_meta($meta_id) { global $_tribe_meta_factory; $fields = tribe_get_custom_fields(get_the_ID()); $custom_meta = ''; foreach ($fields as $label => $value) { $custom_meta .= Tribe_Meta_Factory::template($label, $value, $meta_id); } return apply_filters('tribe_event_pro_meta_custom_meta', $custom_meta); }
/** * Get the venue map * * @param int $meta_id * @return string */ public static function venue_map($meta_id) { global $_tribe_meta_factory; $post_id = get_the_ID(); $map = tribe_get_embedded_map($post_id); $venue_map = empty($map) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $map, $meta_id); return apply_filters('tribe_event_meta_venue_map', $venue_map); }
/** * Get the event meta * * @return mixed|void * @since 3.0 */ function tribe_get_the_event_meta() { $html = ''; foreach (Tribe_Meta_Factory::get_order() as $meta_groups) { foreach ($meta_groups as $meta_group_id) { $html .= tribe_get_meta_group($meta_group_id, true); } } return apply_filters('tribe_get_the_event_meta', $html); }