Occurrence::is_valid_occurrence_id( int $id )


Parameters

$id

(int) (Required) Provisional or other ID that we want to validate against the database as a valid Occurrence ID.


Top ↑

Return

(bool)


Top ↑

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 );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.