Tribe__Tickets__Ticket_Object::show_description()
Returns whether the ticket description should show on the front page and in emails. Defaults to true.
Return
(boolean)
Source
File: src/Tribe/Ticket_Object.php
public function show_description() {
$key = tribe( 'tickets.handler' )->key_show_description;
$show = true;
if ( metadata_exists( 'post', $this->ID, $key ) ) {
$show = get_post_meta( $this->ID, $key, true );
}
/**
* Allows filtering of the value so we can for example, disable it for a theme/site
*
* @since 4.6
*
* @param boolean whether to show the description or not
* @param int ticket ID
*/
$show = apply_filters( 'tribe_tickets_show_description', $show, $this->ID );
// Make sure we have the correct value
return tribe_is_truthy( $show );
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |