Tribe__Tickets__RSVP::do_metabox_capacity_options( int $event_id, int $ticket_id )
Renders the advanced fields in the new/edit ticket form.
Contents
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.
Return
(mixed)
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';
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |