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 or change the featured image of an imported event. | |
* | |
* 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 | |
/** | |
* 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 | |
/** | |
* Transform all single quotes and apostrophes to straight single quotes in search string. | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets | |
* | |
* Plugins required: The Events Calendar | |
* Author: Andras Guseo | |
* Created: December 28, 2023 | |
*/ |
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 | |
/** | |
* Move the starting date of the subscribe feed back by 2 months. | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets | |
* | |
* Plugins required: The Events Calendar | |
* Author: Andras Guseo | |
* Created: December 27, 2023 | |
*/ |
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 custom columns to Tickets CSV import. | |
* This example adds a column for product category (WooCommerce) and ticket fieldset. | |
* The values in the CSV file need to be prefixed. Please read in-line comments for instructions. | |
* | |
* Plugins required: Event Tickets Plus | |
* Author: Andras Guseo | |
* Created: December 12, 2023 | |
*/ |
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 | |
/** | |
* A template override to allow the sorting of RSVP blocks on the front-end based on selected properties. | |
* | |
* Block: RSVP | |
* | |
* This is a template override for the following file: | |
* event-tickets/src/views/v2/rsvp.php | |
* | |
* This file should be placed in the following folder: |
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 post status to the "default status for submitted events" when a community event is edited. | |
* | |
* Plugins required: The Events Calendar, Community Events | |
* Author: Andras Guseo | |
* Created: November 3, 2023 | |
*/ | |
add_filter( 'tribe_events_event_update_args', 'tec_ce_pending_after_edit', 10, 3 ); |
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 tags to imported events. | |
* | |
* Plugins required: The Events Calendar | |
* Author: Andras Guseo | |
* Created: November 2, 2023 | |
*/ | |
add_action( 'tribe_aggregator_after_insert_post', 'tec_ea_add_tag_to_imported_events', 10, 3 ); |
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 the WordPress time zone, the TEC time zone mode, and the TEC editor mode to the admin bar. | |
* Change the TEC time zone or the editor mode in the admin bar. | |
* Intended for use on test sites or staging sites only. | |
* | |
* Plugins required: The Events Calendar (for the TEC related part) | |
* Author: Andras Guseo | |
* Created: October 31, 2023 | |
* Last updated: October 31, 2023 |
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 events via CSV import convert imported event content to block editor. | |
* | |
* Plugins required: The Events Calendar | |
* Author: Andras Guseo | |
* Created: October 16, 2023 | |
* Last updated: October 17, 2023 | |
*/ |