Occurrence::is_valid_occurrence_id( int $id )
Contents
Parameters
- $id
-
(int) (Required) Provisional or other ID that we want to validate against the database as a valid Occurrence ID.
Return
(bool)
Source
File: src/Events/Custom_Tables/V1/Models/Occurrence.php
public static function is_valid_occurrence_id( $id ) {
$post_id = Occurrence::normalize_id( (int) $id );
return TEC::POSTTYPE === get_post_type( $post_id );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |