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