This file contains 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 | |
/** | |
* Set WooCommerce orders for Ticket products to 'completed' status automatically based on certain criteria. | |
* | |
* You can further tweak the behavior by adjusting the snippet: | |
* - based on order status: line 29 | |
* - based on payment gateway: line 36 | |
*/ | |
add_action( 'woocommerce_thankyou', function ( $order_id ) { | |
// Bail if there is no order. |
This file contains 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 | |
/** | |
* Change the time zone of all events and adjust the UTC times accordingly. | |
* | |
* Usage: Add the snippet with Code Snippets. | |
* Set your target time zone on line 20. | |
* Optional: Set your target time zone abbreviation on line 33. | |
* Save it as a 'Run once' snippet. | |
* Go to the Snippet list and click on 'Run' next to the snippet. | |
* |
This file contains 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 | |
/** | |
* When importing from Other URL with Event Aggregator, only import/update the event | |
* category, if it hasn't been changed on the destination site yet. | |
* | |
* Usage: Add the snippet with a plugin like Code Snippets, or to the functions.php file. | |
* | |
* @author: Andras Guseo | |
* | |
* Plugins required: The Events Calendar, Event Aggregator |
This file contains 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 | |
/** | |
* Block REST API requests coming from Event Aggregator. Basically blocks imports. | |
* It can block other sites trying to siphon events with EA through the "Other URL" source. | |
* | |
* Usage: Add the snippet with a plugin like Code Snippets or to your functions.php file. | |
* | |
* @author: Andras Guseo | |
* | |
* Plugins required: The Events Calendar |
This file contains 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 | |
/** | |
* Changes the event title and description in the iCal feed which is used to export events or | |
* subscribe to the calendar. Can be used to prank subscribers to the calendar. :) | |
* | |
* Usage: Add the snippet with a plugin like Code Snippets or to your functions.php file. | |
* | |
* @author: Andras Guseo | |
* | |
* Plugins required: The Events Calendar |
This file contains 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 | |
/** | |
* Insert virtual event meeting URL at the end of the description. | |
* | |
* @param array $item Array of items describing the event in ical format. | |
* @param object $event The event object. | |
* | |
* @return array | |
*/ | |
add_filter( 'tribe_ical_feed_item', function ( $item, $event ) { |
This file contains 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 | |
/** | |
* Trash (or delete) orphaned Tickets Commerce tickets. | |
* | |
* Usage: Add the snippet with a plugin like Code Snippets. | |
* Save it as a "Run once" snippet. | |
* Go to the All Snippets page and run the snippet. | |
* | |
* @author: Andras Guseo | |
* |
This file contains 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 | |
/** | |
* This will add a button next to the bulk actions. | |
*/ | |
add_action( 'restrict_manage_posts', 'filter_future_events' ); | |
function filter_future_events() { | |
global $typenow; | |
// Check that we're on the correct post type | |
if ( $typenow == 'tribe_events' ) { |
This file contains 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 | |
/** | |
* PDF Pass: Body - Ticket Info - Attendee Fields | |
* | |
* Place this template in your own theme by creating a file at: | |
* wp-content/themes/[your-theme]/tribe/tickets-plus/integrations/event-tickets-wallet-plus/pdf/pass/body/ticket-info/attendee-fields.php | |
* | |
* See more documentation about our views templating system. | |
* | |
* @link https://evnt.is/event-tickets-wallet-plus-tpl Help article for Wallet Plus template files. |
This file contains 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 | |
/** | |
* View: Month View - Calendar Events | |
* | |
* This is an override for the following template: | |
* wp-content/plugins/the-events-calendar/src/views/v2/month/calendar-body/day/calendar-events.php | |
* | |
* Override this template in your own theme by creating a file at: | |
* wp-content/themes/[your-theme]/tribe/events/v2/month/calendar-body/day/calendar-events.php | |
* |
NewerOlder