/** * @return Tribe__Events__Integrations__X_Theme__X_Theme */ public static function instance() { if (empty(self::$instance)) { self::$instance = new self(); } return self::$instance; }
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; }