Skip to content

Commit

Permalink
fix: filter get occurrences to only show available occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
dkjensen committed Jun 14, 2021
1 parent d0db008 commit 1bfe837
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/wp-zoom-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bfe837

Please sign in to comment.