Tribe__Tickets__Tickets::maybe_add_front_end_tickets_form( string $content )
Maybe add the Tickets Form as shouldn’t be added if is unchecked from the settings
Contents
Parameters
- $content
-
(string) (Required)
Source
File: src/Tribe/Tickets.php
public function maybe_add_front_end_tickets_form( $content ) {
if ( ! tribe_tickets_post_type_enabled( get_post_type() ) ) {
return;
}
if ( post_password_required( get_the_ID() ) ) {
return;
}
return $this->front_end_tickets_form( $content );
}
Changelog
| Version | Description |
|---|---|
| 4.7.3 | Introduced. |