Tribe__Events__Pro__Main::on_plugins_loaded()

Instances all classes that should be built at plugins_loaded time.

Classes are bound using the tribe_singleton function before and then built calling the tribe function.


Source

File: src/Tribe/Main.php

		public function on_plugins_loaded() {
			$this->all_slug = sanitize_title( __( 'all', 'tribe-events-calendar-pro' ) );
			$this->weekSlug = sanitize_title( __( 'week', 'tribe-events-calendar-pro' ) );
			$this->photoSlug = sanitize_title( __( 'photo', 'tribe-events-calendar-pro' ) );

			// Assets loader
			tribe_singleton( 'events-pro.assets', 'Tribe__Events__Pro__Assets', array( 'register' ) );

			tribe_singleton( 'events-pro.admin.settings', 'Tribe__Events__Pro__Admin__Settings', array( 'hook' ) );
			tribe_singleton( 'events-pro.customizer.photo-view', 'Tribe__Events__Pro__Customizer__Photo_View' );
			tribe_singleton( 'events-pro.recurrence.nav', 'Tribe__Events__Pro__Recurrence__Navigation', array( 'hook' ) );

			tribe_register_provider( 'Tribe__Events__Pro__Editor__Provider' );

			tribe( 'events-pro.admin.settings' );
			tribe( 'events-pro.customizer.photo-view' );
			tribe( 'events-pro.assets' );
			tribe( 'events-pro.recurrence.nav' );

			tribe_register_provider( 'Tribe__Events__Pro__Service_Providers__ORM' );
			tribe_register_provider( 'Tribe__Events__Pro__Service_Providers__RBE' );
		}