Last active
August 12, 2020 13:00
-
-
Save lrtrln/1288eeb64b9c0556459ccf1b0ed277d8 to your computer and use it in GitHub Desktop.
Remove Users and Tax from the Sitemap XML feature in WordPress 5.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( | |
'wp_sitemaps_add_provider', | |
function($provider, $name) { | |
if ('users' === $name OR 'taxonomies' == $name) { | |
return false; | |
} | |
return $provider; | |
}, 10, 2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment