Tribe__Tickets_Plus__Meta::ticket_has_meta( int $ticket_id )

Determine whether the ticket has ticket has meta enabled.


Parameters

$ticket_id

(int) (Required) The ticket ID.


Top ↑

Return

(bool) Whether the ticket has meta enabled.


Top ↑

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 );
	}

Top ↑

Changelog

Changelog
Version Description
4.10.1 Introduced.