Module::front_end_tickets_form( $content )
Shows the tickets form in the front end
Contents
Parameters
- $content
-
(Required)
Return
(void)
Source
File: src/Tickets/Commerce/Module.php
public function front_end_tickets_form( $content ) {
$post = $GLOBALS['post'];
$tickets = $this->get_tickets( $post->ID );
foreach ( $tickets as $index => $ticket ) {
if ( __CLASS__ !== $ticket->provider_class ) {
unset( $tickets[ $index ] );
}
}
if ( empty( $tickets ) ) {
return;
}
tribe( Tickets_View::class )->get_tickets_block( $post->ID );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |