Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function isEvent( $postId = null ) {
- if ( $postId === null || ! is_numeric( $postId ) ) {
- global $post;
- $postId = $post->ID;
- }
- if ( get_post_field('post_type', $postId) == self::POSTTYPE ) {
- return true;
- }
- return false;
- }
- public function isVenue( $postId = null ) {
- if ( $postId === null || ! is_numeric( $postId ) ) {
- global $post;
- $postId = $post->ID;
- }
- if ( get_post_field('post_type', $postId) == self::VENUE_POST_TYPE ) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment