Tribe__Tickets__Validator__Base::is_post_id( int $post_id )

Whether a post ID exists.


Parameters

$post_id

(int) (Required)


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Validator/Base.php

	public function is_post_id( $post_id ) {
		$post = get_post( $post_id );

		return ( $post instanceof WP_Post );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.