Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Changes the event date of Veezi films from 'FeatureStartTime' to 'PreShowStartTime'. For use with the Veezi for WordPress plugin (https://wp.theater/downloads/veezi-wordpress/).
<?php
/**
* Changes the event date of Veezi films from 'FeatureStartTime' to 'PreShowStartTime'.
*
* @param array $event_args The current event arguments.
* @param object $veezi_event The event from the Veezi feed.
* @param int $production_id The ID of the parent production.
* @return array The updated event arguments.
*/
function theregal_import_PreShowStartTime( $event_args, $veezi_event, $production_id ) {
$event_args['event_date'] = date('Y-m-d H:i:s', strtotime($veezi_event->PreShowStartTime));
return $event_args;
}
add_filter( 'wpt/veezi/import/process_event/args', 'theregal_import_PreShowStartTime', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.