/** * Shows the tickets form in the front end * * @param $content * @return void */ public function front_end_tickets_form($content) { $post = $GLOBALS['post']; if (!empty($post->post_parent)) { $post = get_post($post->post_parent); } $tickets = self::get_tickets($post->ID); if (empty($tickets)) { return; } $must_login = !is_user_logged_in() && $this->login_required(); $global_stock_enabled = $this->uses_global_stock($post->ID); Tribe__Tickets__Tickets::add_frontend_stock_data($tickets); include $this->getTemplateHierarchy('wootickets/tickets'); }