daily pastebin goal
21%
SHARE
TWEET

Do not hijack ticket link (WooTickets)

BakerMan Mar 10th, 2014 545 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'init', 'wootix_no_hijack' );
  2.  
  3. function wootix_no_hijack() {
  4.         if ( ! class_exists( 'TribeWooTickets' ) ) return;
  5.         remove_filter( 'post_type_link', array( TribeWooTickets::get_instance(), 'hijack_ticket_link' ), 10, 4  );
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top