Archives: Gists
Add 6 months as Import Date Range Limit
Add the “tec-past-event” selector to the class list of the tag.
Fix the country name when importing from Meetup
Dashboard for all WooCommerce tickets sold
Using a template for event imports
This “hack” works for imports from Google Calendar and feeds that correspond to the iCalendar standard (iCal feeds and ICS files). To make this work, create a draft event with no data. Create only the block structure. Once saved, grab the post ID. Enter that post ID in the first line of the function, where:… Continue reading Using a template for event imports
Flip the order of the RSVP and Ticket boxes on the front-end
When using the Classic Editor to create Tickets and RSVPs, then the RSVPs always show up first on the page, followed by the tickets. This CSS snippet will change that order.
Modify event schema
Template override to remove unwanted filter bar categories
Add the “Event Slug” column to CSV import.
This can be used as a base to add any kind of data / meta data to the CSV import.
Add optout value on the Attendees admin page in Event Tickets
Screenshot
Show the full stock next to the available stock, for example “9 of 10 available”
This is for the tickets block. It will not work with RSVPs. Screenshot:
Redirect to a page after submitting community event
Show the Event’s Featured Image for Tickets in WooCommerce cart
From Erica.
Stop event description from being required
Same size boxes in photo view
Remove actions related to attendee information in WooCommerce pages
Add an end date to the event schema markup. (GigPress)
Trim event description in the iCal export feed if too long
Remove the event post URL from the event iCal export feed
You can modify the following fields: DTSTART DTEND DTSTAMP CREATED LAST-MODIFIED UID SUMMARY DESCRIPTION URL LOCATION CATEGORIES ATTACH ORGANIZER Refer to: the-events-calendar/src/Tribe/iCal.php:620
Event Tickets Extension: Featured Image as Ticket Header
Use abbreviated US state names in the backend
Add purchase time on the Attendees admin page in Event Tickets
Add content to ticket emails
Excludes the event description field from the search – updated
Validating CSS values with regex in PHP
Experimental! /** * Regex validation of CSS values for the options. * * @param $subject * * @return bool */ private function css_value_validation( $subject ) { $pattern = ‘(([0-9]{1,})(\.{0,1})([0-9]{0,})(px|pt|pc|em|ex|ch|rem|vh|vw|vmin|vmax|%{0,1})(\s{0,1})){1,4}’; if ( preg_match( $pattern, $subject ) ) { return true; } return false; }
Using Google Maps API Key Restrictions
You will need this script if you would like to have API Key restrictions for your Google Maps API Key. Use one Google Maps API Key for JavaScript Map displays (The Events Calendar). Your “Maps JavaScript API” key should select “HTTP referrers (web sites)” restriction. Use a different API Key for venue geolocation lookups (Events… Continue reading Using Google Maps API Key Restrictions
Template override for list view to include organizers
Template override for the event organizer block to include hotlinks for email phone and organizer name
Change Event Tickets Email Subject for WooCommerce Tickets
Record and show check-in time of RSVP / Ticket
Custom delimiter for CSV import
Show the ‘Sold Out!’ message on list view for events that are in the past
Add extra content on list view below the title
Customize the ‘From’ name and from email address of the RSVP email sent to the user
Shows only events that haven’t started yet in list view.
Allow a one-year import range for the Other URL source
Show extra content above calendar on the calendar starting page
Hide recurrences in category view
Custom sold-out message
Add JSON-LD structured data to list view
Delete events before import 2 (experimental)
Delete events before import (experimental)
Disable REST API for The Events Calendar
Smart month search
Improve month view search so it is not restricted to the current month. Experimental! Use at own risk, there are known bugs/quirks with this code. If a search is conducted in month view but the relevant events are in a different month, switch to that month.
Load map based on a cookie
Open category URL in a different view than the default
Show only the events of the selected day in list view
Add WooCommerce order data to attendee list export
Change day names in month view
Modify / remove event venue when importing with EA
Add a tag to events when importing with EA
Add the event name to the WooCommerce order (on back-end)
Change the number of avatars shown in the Show Attendees section
Limit the Community Events submission form to admins and editors only
Custom events query
A template to create a custom events query for The Events Calendar
Show event recurrences in some views when they are set to be hidden
Add a BCC to selected WooCommerce emails
Change Google Map attributes
A sample snippet showing how to change Google Map attributes.
Template override to sort the organizers alphabetically
Limit timezone list when creating events
Show featured image in Event List widget for non-featured events as well
Add the ‘Export to Google Calendar / iCal’ links to the bottom of the ticket email for Event Tickets
Modify / add cost to event when importing with EA
Add the private events to the RSS feed
This serves as a sample for modifying the contents of the RSS feed of The Events Calendar
Modify titles of calendar views
Set the event status based on user role in Community Events
Export buttons will open in a new window
Modify timezone and time when importing with EA
Makes the ‘Merge Duplicates’ button appear and stick
BCC multiple email addresses – including the site admin – on all Event Tickets’ RSVP ticket emails
BCC site admin email on all Event Tickets’ RSVP ticket emails
German formatting for venue data on single event view
Please read the Themer’s Guide for more info. The deprecated version, for reference.
Page redirection on submitting an RSVP
Change the event URL to the website / external URL
Change the tooltip text on the single event page for all-day recurring events
Show multi-day event on first day only
Change where ‘All Events’ points to
Adding user meta to the attendee list export
Modify event archive query on category view
Creates a filter for the venue ZIP code for Filter Bar
Adding full address details to the event tooltip in month view
Remove export links from The Events Calendar
Change the wording of any bit of text or string, which has a context
It is highly recommended to use the Say what? plugin instead.