diff --git a/includes/wp-zoom-helper-functions.php b/includes/wp-zoom-helper-functions.php index 51864f7..1b09bd5 100644 --- a/includes/wp-zoom-helper-functions.php +++ b/includes/wp-zoom-helper-functions.php @@ -190,6 +190,10 @@ function wp_zoom_get_occurrences( $type = 'webinars', $show_past = false ) { if ( isset( $object['occurrences'] ) ) { foreach ( $object['occurrences'] as $occurrence ) { + if ( $occurrence['status'] !== 'available' ) { + continue; + } + $occurrence = array_merge( $object, $occurrence ); $occurrences[] = $occurrence;