Tribe__Tickets__Validator__Base::is_post_id( int $post_id )
Whether a post ID exists.
Contents
Parameters
- $post_id
-
(int) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_post_id( $post_id ) {
$post = get_post( $post_id );
return ( $post instanceof WP_Post );
}
Changelog
| Version | Description |
|---|---|
| 4.7.5 | Introduced. |