hook(); return true; } /** * Conditionally loads the classes needed to integrate with third-party plugins. * * Third-party plugin integration classes and methods will be loaded only if * supported plugins are activated. */ public function load_integrations() { $this->load_wpml_integration(); $this->load_X_theme_integration(); } private function load_X_theme_integration() { $theme = wp_get_theme(); if ( 'x' !== $theme->get_template() ) { return false; } Tribe__Events__Integrations__X_Theme__X_Theme::instance()->hook(); return true; } }