Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //* Please do NOT include the opening php tag, except of course if you're starting with a blank file
- function ee_seo_xml_sitemap_no_event_type_single($url, $type, $term) {
- if (! isset($term->taxonomy)) {
- return $url;
- }
- if ($term->taxonomy == 'espresso_event_type') {
- $url = '';
- }
- return $url;
- }
- add_filter(
- 'wpseo_sitemap_entry',
- 'ee_seo_xml_sitemap_no_event_type_single',
- 10,
- 3
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement