Tribe__Events__Pro__Main::init()
The class init function.
Return
(void)
Source
File: src/Tribe/Main.php
public function init() {
Tribe__Events__Pro__Mini_Calendar::instance();
Tribe__Events__Pro__This_Week::instance();
Tribe__Events__Pro__Custom_Meta::init();
Tribe__Events__Pro__Geo_Loc::instance();
Tribe__Events__Pro__Community_Modifications::init();
$this->custom_meta_tools = new Tribe__Events__Pro__Admin__Custom_Meta_Tools;
$this->single_event_meta = new Tribe__Events__Pro__Single_Event_Meta;
$this->single_event_overrides = new Tribe__Events__Pro__Recurrence__Single_Event_Overrides;
$this->embedded_maps = new Tribe__Events__Pro__Embedded_Maps;
$this->shortcodes = new Tribe__Events__Pro__Shortcodes__Register;
$this->singular_event_label = tribe_get_event_label_singular();
$this->plural_event_label = tribe_get_event_label_plural();
$this->singular_event_label_lowercase = tribe_get_event_label_singular_lowercase();
$this->plural_event_label_lowercase = tribe_get_event_label_plural_lowercase();
// if enabled views have never been set then set those to all PRO views
if ( false === tribe_get_option( 'tribeEnableViews', false ) ) {
tribe_update_option( 'tribeEnableViews', array( 'list', 'month', 'day', 'photo', 'map', 'week' ) );
// After setting the enabled view we Flush the rewrite rules
flush_rewrite_rules();
}
}