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 | |
*/ |
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 | |
/** | |
* 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 additional fields for Tickets (extension needed!) and add that information to the | |
* ticket email. | |
* | |
* Requirements: | |
* - Event Tickets | |
* - New ticket emails - https://theeventscalendar.com/knowledgebase/event-tickets-emails/ | |
* - Event Tickets Additional Fields extension - https://theeventscalendar.com/extensions/additional-fields-for-tickets/ | |
* - Sample code included below. Customize based on your needs. |
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 |
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 | |
/** | |
* Limit ticket quantity counter to 1. | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets. | |
* | |
* @author: Andras Guseo | |
* | |
* Plugins required: Event Tickets | |
* Created: February 7, 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
<?php | |
/** | |
* Set ticket limits based on event post ID. | |
* | |
* Usage: | |
* - Add the snippet to your functions.php file or with a plugin like Code Snippets. | |
* | |
* @author Andras Guseo | |
* | |
* Plugins required: Event Tickets |
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 end date for recurring events from 1 year in the future to something else. | |
* IMPORTANT: Works with Classic Editor only! | |
* | |
* Usage: Add the snippet to your functions.php file or with a plugin like Code Snippets. | |
* | |
* @author Andras Guseo | |
* | |
* Plugins required: Events Calendar Pro |
NewerOlder