Tribe__Events__Main::plugins_loaded()
Plugins shouldn’t include their functions before plugins_loaded because this will allow better compatibility with the autoloader methods.
Return
(void)
Source
File: src/Tribe/Main.php
public function plugins_loaded() {
if ( $this->should_prevent_autoload_init ) {
return;
}
/**
* Before any methods from this plugin are called, we initialize our Autoloading
* After this method we can use any `Tribe__` classes
*/
$this->init_autoloading();
Tribe__Main::instance();
add_action( 'tribe_common_loaded', array( $this, 'bootstrap' ), 0 );
}