Tribe__Tickets__RSVP::do_metabox_capacity_options( int $event_id, int $ticket_id )

Renders the advanced fields in the new/edit ticket form.

Using the method, providers can add as many fields as they want, specific to their implementation.


Parameters

$event_id

(int) (Required) The Event ID.

$ticket_id

(int) (Required) The Ticket ID.


Top ↑

Return

(mixed)


Top ↑

Source

File: src/Tribe/RSVP.php

	public function do_metabox_capacity_options( $event_id, $ticket_id ) {
		$capacity = '';

		// This returns the original stock
		if ( ! empty( $ticket_id ) ) {
			$ticket = $this->get_ticket( $event_id, $ticket_id );
			if ( ! empty( $ticket ) ) {
				$capacity = $ticket->capacity();
			}
		}

		include Tribe__Tickets__Main::instance()->plugin_path . 'src/admin-views/rsvp-metabox-capacity.php';
	}

Top ↑

Changelog

Changelog
Version Description
4.6 Introduced.