Ejemplo n.º 1
0
 /**
  * Get the event meta
  *
  * @return mixed|void
  */
 function tribe_get_the_event_meta()
 {
     $html = '';
     foreach (Tribe__Events__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);
 }
Ejemplo n.º 2
0
 /**
  * Returns custom meta.
  *
  * @deprecated since 3.6
  *
  * @param string $meta_id The meta group this is in.
  *
  * @return string The custom meta.
  */
 public static function custom_meta($meta_id)
 {
     _deprecated_function(__METHOD__, '4.3');
     $fields = tribe_get_custom_fields(get_the_ID());
     $custom_meta = '';
     foreach ($fields as $label => $value) {
         $custom_meta .= Tribe__Events__Meta_Factory::template($label, $value, $meta_id);
     }
     return apply_filters('tribe_event_pro_meta_custom_meta', $custom_meta);
 }
 /**
  * Get the venue map
  *
  * @deprecated 4.3
  *
  * @param int $meta_id
  *
  * @return string
  */
 public static function venue_map($meta_id)
 {
     _deprecated_function(__METHOD__, '4.3');
     global $_tribe_meta_factory;
     $post_id = get_the_ID();
     $map = tribe_get_embedded_map($post_id);
     $venue_map = empty($map) ? '' : Tribe__Events__Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $map, $meta_id);
     return apply_filters('tribe_event_meta_venue_map', $venue_map);
 }