Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tribe_has_wootickets($post_id = null) {
- global $wpdb;
- $id = TribeEvents::postIdHelper($post_id);
- $result = $wpdb->get_var($wpdb->prepare(
- "SELECT COUNT(*) FROM $wpdb->postmeta WHERE meta_key = %s AND meta_value = %d LIMIT 1",
- '_tribe_wooticket_for_event', $id
- ));
- return (is_numeric($result) and $result > 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement