Advertisement
BakerMan

Temp fix for ticket form (WT 3.0.1)

Jul 24th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. /**
  2.  * Fixes an issue with WooCommerce Tickets 3.0.1 where a
  3.  * "failed to open stream: No such file or directory" error
  4.  * shows in place of the ticket form.
  5.  *
  6.  * Please remove once a definitive fix is issued in a future
  7.  * version of WooCommerce Tickets.
  8.  */
  9. add_filter('tribe_events_tickets_template_wootickets/tickets.php', 'wootickets_temp_tpl_fix');
  10.  
  11. function wootickets_temp_tpl_fix($path) {
  12.     if (false !== strpos($path, 'wootickets/views/wootickets') and !file_exists($path))
  13.         return str_replace('views/wootickets', 'views', $path);
  14.     return $path;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement