);
}
-// Add hook to return event recurrences and times data for a specific event ID
-add_filter( 'glm-member-db-events-get-event-times', function( $eventID ){
-
- // Check for positive integer event ID
- $eventId = ($eventID-0);
- if ($eventId == 0) {
- return $eventID;
- }
-
- // Call dedicated model to get event base data
- require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataEvents.php';
- $EventData = new GlmDataEvents($this->wpdb, $this->config);
- $eventData = $EventData->getEntry($eventId);
-
- // If we didn't get a good event, just pass on supplied data
- if (!$eventData) {
- return $eventId;
- }
-
- // Get any schedules and times for this event
- require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataRecurrences.php';
- $RecurrenceData = new GlmDataEventsRecurrences($this->wpdb, $this->config);
- $recurrences = $RecurrenceData->getRecurWithTimes($eventId);
-
- return $recurrences;
-
-} );
-
-
/*
} );
+// Add hook to return event recurrences and times data for a specific event ID
+add_filter( 'glm-member-db-events-get-event-times', function( $eventID ){
+ // Check for positive integer event ID
+ $eventId = ($eventID-0);
+ if ($eventId == 0) {
+ return $eventID;
+ }
+
+ // Call dedicated model to get event base data
+ require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataEvents.php';
+ $EventData = new GlmDataEvents($this->wpdb, $this->config);
+ $eventData = $EventData->getEntry($eventId);
+
+ // If we didn't get a good event, just pass on supplied data
+ if (!$eventData) {
+ return $eventId;
+ }
+
+ // Get any schedules and times for this event
+ require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataRecurrences.php';
+ $RecurrenceData = new GlmDataEventsRecurrences($this->wpdb, $this->config);
+ $recurrences = $RecurrenceData->getRecurWithTimes($eventId);
+
+ return $recurrences;
+
+} );