Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('comments_template', 'allow_tribe_venue_commentform', 20);
- function allow_tribe_venue_commentform($template) {
- global $wp_query;
- if ( ! class_exists('TribeEvents')) return $template;
- elseif ($wp_query->query['post_type'] === TribeEvents::VENUE_POST_TYPE)
- $template = str_replace('no-comments', 'comments', $template);
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement