VideoPressHQPlaylist::TAXONOMY_NAME, 'hide_empty' => true, 'orderby' => 'ID', 'order' => 'DESC', ) ); if ( is_wp_error( $terms ) || empty( $terms ) ) { return; } $playlists = VideoPressHQPlaylist::from_terms( $terms ); $playlists = array_filter( $playlists, function( $playlist ) { return $playlist->is_visible_to_current_user( false ); } ); if ( empty( $playlists ) ) { return; } // As we're using a custom filter after the query, we need to manually adjust the playlist count. if ( $per_page > 0 && count( $playlists ) > $per_page ) { $playlists = array_slice( $playlists, 0, $per_page ); } ?>

Playlists