Late to the party, the code works, but needs straight quotes instead of the curly ones. Otherwise WP will throw an error.
Looks like it doesn’t disable it completely, but removes it from the Sitemap, which is what I wanted to happen.
Edit: The forum format’s it that way, can’t post it here 🙂
-
This reply was modified 1 year, 1 month ago by JT.
-
This reply was modified 1 year, 1 month ago by JT.