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 | |
*/ |
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
<? | |
/** | |
* 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. | |
* | |
* Plugins: The Events Calendar, The Events Calendar: Eventbrite Tickets, Elementor, Elementor Pro | |
* Author: Andras Guseo | |
* Last updated: 2024-05-28 |
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 | |
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 ) { |
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: Exclude QR codes from selected tickets. | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* or use a plugin like Code Snippets. | |
* | |
* Plugin: Event Tickets, Event Tickets Plus | |
* Author: Andras Guseo | |
* Last updated: 2024-03-25 | |
*/ |
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: Add a column with attendee information to the Attendees admin page in Event Tickets | |
* Usage: Paste the below snippet into your active (child) theme's functions.php file | |
* or use a plugin like Code Snippets. | |
* | |
* Plugin: Event Tickets, Event Tickets Plus | |
* Author: Andras Guseo | |
* Last updated: 2024-04-26 | |
*/ |
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 the default commerce provider for events | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets | |
* | |
* @author: Andras Guseo | |
* | |
* Plugins required: Event Tickets Plus | |
* Created: April 10, 2024 |
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
## On you machine run: | |
docker exec -it devkinsta_fpm bash | |
## After you are logged change to /tmp | |
cd /tmp | |
## Install and configure composer | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.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 | |
/** | |
* Preserve / reconvert links in Microsoft Teams invitations when imported from Outlook. | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets | |
* | |
* @param array $event Which Event data was sent | |
* @param stdClass|array $item Raw version of the data sent from EA | |
* @param object $data The record we are dealing with | |
* |
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 support for Event Status to CSV import | |
* | |
* Usage: | |
* - Add the snippet to your functions.php file or with a plugin like Code Snippets. | |
* | |
* @author Andras Guseo | |
* | |
* Plugins required: The Events Calendar |
NewerOlder