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
Contents
Parameters
- $postId
-
(int) (Optional) (optional)
Default value: null
Return
(int) post ID
Source
File: src/Tribe/Main.php
public static function postIdHelper( $postId = null ) {
return Tribe__Main::post_id_helper( $postId );
}