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.
Contents
Parameters
- $post
-
(int|WP_Post) (Required)
Return
(bool) True if this post has any tickets from this provider.
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 ) ); }
Changelog
Version | Description |
---|---|
4.12.3 | Introduced. |