Tribe__Tickets__Editor__Blocks__Rsvp::get_all_tickets_past( $tickets )
Method to get the all RSVPs past flag All RSVPs past flag is true if all RSVPs end date is earlier than current date If there are no RSVPs, false is returned
Return
(bool)
Source
File: src/Tribe/Editor/Blocks/Rsvp.php
public function get_all_tickets_past( $tickets ) {
if ( empty( $tickets ) ) {
return false;
}
$all_past = true;
foreach ( $tickets as $ticket ) {
$all_past = $all_past && $ticket->date_is_later();
}
return $all_past;
}
Changelog
| Version | Description |
|---|---|
| 4.9 | Introduced. |