Tribe__Tickets__RSVP::get_attendees_count_not_going_for_user( int $post_id,  $user_id )

Get total count of attendees marked as not 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_not_going_for_user( $post_id, $user_id ) {
		/** @var Tribe__Tickets__Attendee_Repository $repository */
		$repository = tribe_attendees( $this->orm_provider );

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

Top ↑

Changelog #

Changelog
Version Description
4.11.3 Introduced.