\WP_Stager_Integration\Component::render_event_ticket_group(string $title, array $tickets): void
\WP_Stager_Integration\Component::render_event_ticket_group(string $title, array $tickets): voidDescription
Render the event ticket group component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$title | string | The ticket group title. |
$tickets | array | The array of ticket data. See \WP_Stager_Integration\Component::render_event_ticket() for necessary array keys. |
Returns:
void
Information
| File | class-component.php line 429 |
|---|---|
| See also |
Full Code
/**
* Render the event ticket group component.
*
* @param string $title The ticket group title.
* @param array $tickets The array of ticket data. See <code>\WP_Stager_Integration\Component::render_event_ticket()</code> for necessary array keys.
*
* @return void
*
* @see \WP_Stager_Integration\Component::render_event_ticket()
*/
public static function render_event_ticket_group( $title, $tickets ) {
// Get data
$title = (string) $title;
$tickets = (array) $tickets;
// Render the component
self::render( 'event-ticket-group', 'template-parts/event-page', array(
'title' => $title,
'tickets' => $tickets,
) );
}💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

