Skip to content

Instantly share code, notes, and snippets.

View slimndap's full-sized avatar

Jeroen Schmit slimndap

View GitHub Profile
@slimndap
slimndap / stager.js
Last active June 4, 2022 20:58
Stager Advanced Ticketshop Integration
"use strict";
/*
* Enables the 'Advanced Integration' of the Stager Ticketshop.
*
* This script makes is possible to embed the Stager Ticketshop in an iframe with support for:
* * dynamic iframe height based on the content of the iframe content
* * cross domain GTM Tracking
*
* For more information about the advanced integration of the Stager Ticketshop see:
@slimndap
slimndap / jeero-event-date-check.php
Last active January 4, 2023 22:57
A Jeero extension plugin that prevents Jeero from importing events from the Stager ticketing system to The Events Calendar, if an event has a publication date in the future. The plugin is written by ChatGPT!
<?php
/*
Plugin Name: Jeero Event Date Check
Description: Prevents Jeero from importing events with a future publication date.
Version: 1.0
Author: Your Name
*/
function jeero_stop_future_events( $result, $data, $raw, $theater, $subscription ) {
// Check if $result is already a WP_Error object