Tribe__Tickets__RSVP::get_attendees_count_not_going( int $post_id )
Get total count of attendees marked as not going for this provider.
Contents
Parameters
- $post_id
-
(int) (Required) Post or Event ID.
Return
(int) Total count of attendees marked as going.
Source
File: src/Tribe/RSVP.php
public function get_attendees_count_not_going( $post_id ) {
/** @var Tribe__Tickets__Attendee_Repository $repository */
$repository = tribe_attendees( $this->orm_provider );
return $repository->by( 'event', $post_id )->by( 'rsvp_status', 'no' )->found();
}
Changelog
| Version | Description |
|---|---|
| 4.10.6 | Introduced. |