Skip to content

Instantly share code, notes, and snippets.

@lrtrln
Last active August 12, 2020 13:00
Show Gist options
  • Save lrtrln/1288eeb64b9c0556459ccf1b0ed277d8 to your computer and use it in GitHub Desktop.
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
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