/**
 * Bloquer complètement la récupération de mot de passe
 */
add_filter('allow_password_reset', '__return_false');

/**
 * Bloquer l'accès à l'action lostpassword
 * sur la page de connexion personnalisée.
 */
add_action('init', function () {

    if (
        isset($_GET['action']) &&
        $_GET['action'] === 'lostpassword' &&
        strpos($_SERVER['REQUEST_URI'], 'accestravaux-login') !== false
    ) {
        wp_safe_redirect(home_url('/'));
        exit;
    }

});









<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.accestravaux.fr/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://www.accestravaux.fr/post-sitemap.xml</loc>
		<lastmod>2024-01-29T11:02:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.accestravaux.fr/page-sitemap.xml</loc>
		<lastmod>2026-06-04T12:25:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.accestravaux.fr/category-sitemap.xml</loc>
		<lastmod>2024-01-29T11:02:32+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->