Tribe__Tickets_Plus__Meta::ticket_has_meta( int $ticket_id )
Determine whether the ticket has ticket has meta enabled.
Contents
Parameters
- $ticket_id
-
(int) (Required) The ticket ID.
Return
(bool) Whether the ticket has meta enabled.
Source
File: src/Tribe/Meta.php
public function ticket_has_meta( $ticket_id ) {
$has_meta = get_post_meta( $ticket_id, self::ENABLE_META_KEY, true );
return ! empty( $has_meta ) && tribe_is_truthy( $has_meta );
}
Changelog
| Version | Description |
|---|---|
| 4.10.1 | Introduced. |