/** * The class init function. * * @return void * @since 2.0 */ public function init() { // if pro rewrite rules have not been generated yet, flush them. (This can happen on reactivations.) if (is_array(get_option('rewrite_rules')) && !array_key_exists(trailingslashit(TribeEvents::instance()->rewriteSlug) . $this->weekSlug . '/?$', get_option('rewrite_rules'))) { TribeEvents::flushRewriteRules(); } TribeEventsMiniCalendar::instance(); TribeEventsCustomMeta::init(); TribeEventsRecurrenceMeta::init(); TribeEventsGeoLoc::instance(); $this->displayMetaboxCustomFields(); }
/** * Get Event Custom Field by Label * * retrieve a custom field's value by searching its label * instead of its (more obscure) ID * * @since 2.0.3 * @param (string) $label, the label to search for * @param (int) $eventID (optional), the event to look for, defaults to global $post * @return (string) value of the field */ function tribe_get_custom_field($label, $eventID = null) { return apply_filters('tribe_get_custom_field', TribeEventsCustomMeta::get_custom_field_by_label($label, $eventID)); }
/** * The class init function. * * @return void * @since 2.0 */ public function init() { TribeEventsMiniCalendar::instance(); TribeEventsCustomMeta::init(); TribeEventsRecurrenceMeta::init(); TribeEventsGeoLoc::instance(); $this->displayMetaboxCustomFields(); }
/** * The class init function. * * @return void * @since 2.0 */ public function init() { TribeEventsMiniCalendar::instance(); TribeEventsCustomMeta::init(); TribeEventsRecurrenceMeta::init(); TribeEventsGeoLoc::instance(); $this->displayMetaboxCustomFields(); $this->single_event_meta = new TribeEventsPro_SingleEventMeta(); }
/** * The class init function. * * @return void */ public function init() { TribeEventsMiniCalendar::instance(); TribeEventsCustomMeta::init(); TribeEventsRecurrenceMeta::init(); TribeEventsGeoLoc::instance(); $this->displayMetaboxCustomFields(); $this->single_event_meta = new TribeEventsPro_SingleEventMeta(); $this->embedded_maps = new TribeEventsPro_EmbeddedMaps(); $this->mini_calendar_shortcode = new Tribe__Events__Pro__Mini_Calendar_Shortcode(); }
public function init() { TribeEventsCustomMeta::init(); TribeEventsRecurrenceMeta::init(); $this->displayMetaboxCustomFields(); }
/** * Echo Event Custom Field by Label * * same as above but echo instead of return * * @param (string) $label, the label to search for * @param (int) $eventID (optional), the event to look for, defaults to global $post * * @return (string) value of the field * @deprecated * @todo remove in 3.11 */ function tribe_custom_field($label, $eventID = null) { _deprecated_function(__FUNCTION__, '3.9', "tribe_get_custom_fields"); $field = TribeEventsCustomMeta::get_custom_field_by_label($label, $eventID); echo $field; }