This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Plugin Name: WooCommerce Tickets: Disable Ticket Emails | |
| Description: Turns off ticket emails that are automatically sent from WooCommerce Tickets | |
| Version: 1.0 | |
| **/ | |
| function wootickets_email_no_no() { | |
| return 'no'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Add a link to the Facebook event pages right before the content | |
| */ | |
| function tribe_link_to_fb_event() { | |
| // Check if the event is associated with a Facebook event | |
| $fbid = tribe_get_event_meta( get_the_ID(), '_FacebookID' ); | |
| if ( empty( $fbid ) ) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Causes WooCommerce Ticket product pages to stop redirecting to their event page | |
| * See https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/ | |
| */ | |
| function tribe_wootix_no_hijack() { | |
| if ( ! class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) return; | |
| $woo_tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(); | |
| remove_filter( 'post_type_link', array( $woo_tickets, 'hijack_ticket_link' ), 10, 4 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'tribe_get_event_website_link_label', 'tribe_get_event_website_link_label_default' ); | |
| function tribe_get_event_website_link_label_default( $label ) { | |
| if ( $label === tribe_get_event_website_url() ) { | |
| $label = "Visit Website »"; | |
| } | |
| return '<a href="' . tribe_get_event_website_url() . '" target="_blank">' . $label . '</a>'; | |
| } |
OlderNewer