Guest User

Untitled

a guest
Sep 12th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public function isEvent( $postId = null ) {
  2. if ( $postId === null || ! is_numeric( $postId ) ) {
  3. global $post;
  4. $postId = $post->ID;
  5. }
  6. if ( get_post_field('post_type', $postId) == self::POSTTYPE ) {
  7. return true;
  8. }
  9. return false;
  10. }
  11.  
  12. public function isVenue( $postId = null ) {
  13. if ( $postId === null || ! is_numeric( $postId ) ) {
  14. global $post;
  15. $postId = $post->ID;
  16. }
  17. if ( get_post_field('post_type', $postId) == self::VENUE_POST_TYPE ) {
  18. return true;
  19. }
  20. return false;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment