Tribe__Tickets__Tickets_View::is_rsvp_restricted( int $event_id = null, int $ticket_id = null, int $user_id = null )

Verifies if the Given Event has RSVP restricted.


Parameters

$event_id

(int) (Optional) The Event/Post ID (optional).

Default value: null

$ticket_id

(int) (Optional) The Ticket/RSVP ID (optional).

Default value: null

$user_id

(int) (Optional) A User ID (optional).

Default value: null


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tribe/Tickets_View.php

	public function is_rsvp_restricted( $event_id = null, $ticket_id = null, $user_id = null ) {
		// By default we always pass the current User
		if ( is_null( $user_id ) ) {
			$user_id = get_current_user_id();
		}

		/**
		 * Allow users to filter if this Event or Ticket has Restricted RSVP
		 *
		 * @param  boolean  $restricted Is this Event or Ticket Restricted?
		 * @param  int      $event_id   The Event/Post ID (optional)
		 * @param  int      $ticket_id  The Ticket/RSVP ID (optional)
		 * @param  int      $user_id    An User ID (optional)
		 */
		return apply_filters( 'event_tickets_is_rsvp_restricted', false, $event_id, $ticket_id, $user_id );
	}