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 | |
/** | |
* 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 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 | |
/** | |
* 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 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 | |
/** | |
* 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 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 | |
/** | |
* 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 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 | |
/** | |
* 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 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 | |
/** | |
* 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 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_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 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 | |
/** | |
* 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 | |
*/ |
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
<? | |
/** | |
* Description: Inject the Eventbrite Tickets iFrame into the post content. | |
* Workaround for Elementor Pro. | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* or use a plugin like Code Snippets. | |
* Important: For the ticket iframe to show the event either needs to be publicly listed, or | |
* the iframe needs to be forced with this snippet: | |
* add_filter( 'tribe_events_eventbrite_iframe_display', '__return_true' ); | |
* |
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 | |
function tec_custom_filter_values_order( $values, $field ) { | |
// Bail if it's not the right field | |
if ( $field !== '_ecp_custom_2' ) { | |
return $values; | |
} | |
$order = ["New", "Beginner", "Experienced"]; | |
usort( $values, function( $a, $b ) use ( $order ) { |