Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //* Do NOT include the opening php tag
- //* Remove Disqus from single event pages and single venue pages in Event Espresso 4
- add_filter( 'comments_template' , 'ee_remove_disqus', 1 );
- function ee_remove_disqus($file) {
- if ( in_array(get_post_type(), array('espresso_events', 'espresso_venues')) )
- remove_filter('comments_template', 'dsq_comments_template');
- return $file;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement