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 | |
* |
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 | |
/** | |
* Description: Generate a UID for the event and add it to the iCal feed. | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* or use a plugin like Code Snippets. | |
* | |
* Plugins: The Events Calendar | |
* Author: Andras Guseo | |
* Last updated: 2024-07-22 | |
*/ |
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 | |
add_filter( 'tribe_events_views_v2_rest_params', 'tec_redirect_search_to_list_view', 10, 2 ); | |
function tec_redirect_search_to_list_view( $params, $request ) { | |
$ref = $_SERVER['HTTP_REFERER']; | |
// Are you coming from the list view? | |
$coming_from_list = str_contains( $ref, '/list/' ); | |
if ( |
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 | |
/** | |
* Description: Adds the event status column to the events admin and makes it sortable. | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* or use a plugin like Code Snippets. | |
* | |
* Plugins: The Events Calendar | |
* Author: Andras Guseo, Masood Ahmed Khan, Guga Alvez | |
* Last updated: 2024-06-28 | |
*/ |
NewerOlder