add_action('wpcf7_before_send_mail', function($contact_form) {
    if (isset($_POST['g-recaptcha-response'])) {
        $token = sanitize_text_field($_POST['g-recaptcha-response']);
        $secret = '6LeJbkwtAAAAAH_1FYMtZDcGrbU4DRITQEiPSFb5'; // TU CLAVE SECRETA AQUÍ

        $response = wp_remote_post('https://www.google.com/recaptcha/api/siteverify', [
            'body' => [
                'secret' => $secret,
                'response' => $token,
                'remoteip' => $_SERVER['REMOTE_ADDR']
            ]
        ]);

        $result = json_decode(wp_remote_retrieve_body($response), true);

        if (empty($result['success']) || $result['score'] < 0.5) {
            $contact_form->set_status('spam');
        }
    }
});




<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//milnoticias.es/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://milnoticias.es/post-sitemap.xml</loc>
		<lastmod>2026-03-30T11:01:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://milnoticias.es/page-sitemap.xml</loc>
		<lastmod>2023-06-05T07:47:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://milnoticias.es/category-sitemap.xml</loc>
		<lastmod>2026-03-30T11:01:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://milnoticias.es/post_tag-sitemap.xml</loc>
		<lastmod>2026-03-30T11:01:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://milnoticias.es/author-sitemap.xml</loc>
		<lastmod>2024-04-16T08:20:57+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->