Tickets_View::get_restriction_attr( int $event_id = null, int $ticket_id = null )

Gets a HTML Attribute for input/select/textarea to be disabled


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


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tickets/Commerce/Tickets_View.php

	public function get_restriction_attr( $event_id = null, $ticket_id = null ) {
		$is_disabled = '';
		if ( $this->is_ticket_restricted( $event_id, $ticket_id ) ) {
			$is_disabled = 'disabled title="' . esc_attr__( 'This ticket is no longer active.', 'event-tickets' ) . '"';
		}

		return $is_disabled;
	}

Top ↑

Changelog

Changelog
Version Description
5.1.9 Introduced.