Hey @yvandupuy,
It’s actually not us that’s putting that in your robots.txt, but WordPress. If you disable the new built-in sitemap, it should go away.
You can do this by adding the following two lines to the bottom of your theme’s functions.php file –
// Disables the built-in WP sitemap.
remove_action( 'init', 'wp_sitemaps_get_server' );
add_filter( 'wp_sitemaps_enabled', '__return_false' );
– Arnaud
hey @arnaudbroes
Thanks it solved my matter. Do you know if Automattic team forecast to put a simple button function in a future update to deactivate it through it ?
It would be easier
Yvan
Hey @yvandupuy,
WordPress is developed by volunteers, some of which are employed by Automattic, but most of them aren’t. Automattic (wordpress.com) is a commercial company whereas WordPress.org is a non-profit foundation. Not that it really matters, but it’s just a nice little fact. 😉
In any case, I don’t think the team plans on adding a setting/button to disable it. I believe they expect plugin authors to disable it on their end (AIOSEO for example does this when you enable our sitemap). So I’d reach out to the developer of the sitemap plugin you’re using and ask them to add this in.
– Arnaud
Ok @arnaudbroes
Thanks for the information about automattic. Thanks also for your information transmission to “XML Sitemap & Google News for WordPress” plugin team. I will wait for their update so, but by the meantime, the matter is solved.
Best
Yvan