Tribe__Events__Community__Tickets__Main::bootstrap()
Bootstrap the plugin with the plugins_loaded action.
Source
File: src/Tribe/Main.php
public function bootstrap() { // No need to bootstrap, we already did. if ( has_action( 'init', [ $this, 'init' ] ) ) { return; } // Load text domains early so they apply even before we run the plug itself $mopath = $this->plugin_dir . 'lang/'; $domain = 'tribe-events-community-tickets'; // If we don't have Common classes load the old fashioned way if ( ! class_exists( 'Tribe__Main' ) ) { load_plugin_textdomain( $domain, false, $mopath ); } else { // This will load `wp-content/languages/plugins` files first Tribe__Main::instance()->load_text_domain( $domain, $mopath ); } if ( ! $this->should_run() ) { // Display notice indicating which plugins are required add_action( 'admin_notices', [ $this, 'admin_notices' ] ); return; } $this->pue = new Tribe__Events__Community__Tickets__PUE( "{$this->plugin_path}/events-community-tickets.php" ); require_once $this->plugin_path . 'src/functions/template-tags.php'; $this->hooks(); }
Changelog
Version | Description |
---|---|
4.8.4 | - Added functionality for Tickets Commerce |
4.7.0 | Introduced. |