/** * Load WooCommerce Tickets classes and verify if the min required conditions are met. * * If they are, it instantiates the Tribe__Events__Tickets__Woo__Main singleton. * If they are not, it uses the admin_notices hook with tribe_wootickets_show_fail_message * */ function wootickets_init() { tribe_init_woo_tickets_autoloading(); if (!wootickets_should_run() || !class_exists('Tribe__Events__Tickets__Tickets')) { $langpath = trailingslashit(basename(dirname(__FILE__))) . 'lang/'; load_plugin_textdomain('tribe-wootickets', false, $langpath); add_action('admin_notices', 'tribe_wootickets_show_fail_message'); return; } new Tribe__Events__Tickets__Woo__PUE(__FILE__); Tribe__Events__Tickets__Woo__Main::init(); }