Tribe__Tickets__Tickets::post_has_tickets( int|WP_Post $post )

Whether a post has tickets from this provider, even if this provider is not the default provider.


Parameters #

$post

(int|WP_Post) (Required)


Top ↑

Return #

(bool) True if this post has any tickets from this provider.


Top ↑

Source #

File: src/Tribe/Tickets.php

		public function post_has_tickets( $post ) {
			$post_id = Tribe__Main::post_id_helper( $post );

			if ( empty( $post_id ) ) {
				return false;
			}

			return ! empty( $this->get_tickets_ids( $post_id ) );
		}

Top ↑

Changelog #

Changelog
Version Description
4.12.3 Introduced.