Tribe__Tickets__RSVP::get_attendees_count_going( int $post_id )

Get total count of attendees marked as going for this provider.


Parameters

$post_id

(int) (Required) Post or Event ID.


Top ↑

Return

(int) Total count of attendees marked as going.


Top ↑

Source

File: src/Tribe/RSVP.php

	public function get_attendees_count_going( $post_id ) {
		/** @var Tribe__Tickets__Attendee_Repository $repository */
		$repository = tribe_attendees( $this->orm_provider );

		return $repository->by( 'event', $post_id )->by( 'rsvp_status', 'yes' )->found();
	}

Top ↑

Changelog

Changelog
Version Description
4.10.6 Introduced.