Tribe__Events__Main::postIdHelper( int $postId = null )

Helper function for getting Post Id. Accepts null or a post id. If no $post object exists, returns false to avoid a PHP NOTICE


Parameters

$postId

(int) (Optional) (optional)

Default value: null


Top ↑

Return

(int) post ID


Top ↑

Source

File: src/Tribe/Main.php

		public static function postIdHelper( $postId = null ) {
			return Tribe__Main::post_id_helper( $postId );
		}