/**
 * Plugin Name: Cryptonomist Yoast Meta REST
 * Description: Endpoint custom yoast-meta/v1/update usato da n8n per scrivere i meta Yoast.
 * Version: 1.0
 */
add_action('rest_api_init', function () {
    register_rest_route('yoast-meta/v1', '/update', array(
        'methods'  => 'POST',
        'callback' => 'cn_update_yoast_meta',
        'permission_callback' => function ($req) {
            return current_user_can('edit_post', (int) $req->get_param('post_id'));
        },
    ));
});
function cn_update_yoast_meta(WP_REST_Request $req) {
    $post_id = (int) $req->get_param('post_id');
    $meta    = $req->get_param('meta');
    if (!get_post($post_id))   return new WP_Error('post_not_found', 'Post non trovato', array('status' => 404));
    if (!is_array($meta))      return new WP_Error('invalid_meta', 'meta deve essere un oggetto', array('status' => 400));
    $allowed = array('_yoast_wpseo_focuskw','_yoast_wpseo_title','_yoast_wpseo_metadesc',
                     '_yoast_wpseo_opengraph-title','_yoast_wpseo_opengraph-description',
                     '_yoast_wpseo_twitter-title','_yoast_wpseo_twitter-description','_yoast_wpseo_canonical');
    $updated = array();
    foreach ((array) $meta as $k => $v) {
        if (in_array($k, $allowed, true)) {
            update_post_meta($post_id, $k, sanitize_text_field($v));
            $updated[$k] = $v;
        }
    }
    return new WP_REST_Response(array('success' => true, 'post_id' => $post_id, 'updated' => $updated), 200);
}
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//cryptonomist.ch/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap.xml</loc>
		<lastmod>2026-06-19T12:00:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap2.xml</loc>
		<lastmod>2018-09-20T08:30:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap3.xml</loc>
		<lastmod>2018-11-16T21:46:10+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap4.xml</loc>
		<lastmod>2019-04-04T09:10:48+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap5.xml</loc>
		<lastmod>2019-05-28T15:50:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap6.xml</loc>
		<lastmod>2019-06-27T12:39:34+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap7.xml</loc>
		<lastmod>2019-07-18T08:11:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap8.xml</loc>
		<lastmod>2019-09-11T08:27:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap9.xml</loc>
		<lastmod>2019-11-07T14:51:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap10.xml</loc>
		<lastmod>2020-01-10T15:54:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap11.xml</loc>
		<lastmod>2020-03-12T14:24:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap12.xml</loc>
		<lastmod>2020-05-07T10:15:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap13.xml</loc>
		<lastmod>2020-06-29T19:01:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap14.xml</loc>
		<lastmod>2020-08-24T06:52:58+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap15.xml</loc>
		<lastmod>2020-10-19T08:31:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap16.xml</loc>
		<lastmod>2020-12-11T22:31:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap17.xml</loc>
		<lastmod>2021-02-16T13:48:43+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap18.xml</loc>
		<lastmod>2021-04-20T13:59:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap19.xml</loc>
		<lastmod>2021-06-18T16:21:50+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap20.xml</loc>
		<lastmod>2021-08-18T09:54:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap21.xml</loc>
		<lastmod>2021-10-08T07:59:41+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap22.xml</loc>
		<lastmod>2021-11-29T08:36:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap23.xml</loc>
		<lastmod>2022-01-25T12:18:02+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap24.xml</loc>
		<lastmod>2022-03-16T11:43:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap25.xml</loc>
		<lastmod>2022-05-05T10:47:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap26.xml</loc>
		<lastmod>2022-06-23T13:36:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap27.xml</loc>
		<lastmod>2022-08-08T13:14:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap28.xml</loc>
		<lastmod>2022-09-27T07:52:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap29.xml</loc>
		<lastmod>2022-11-14T10:00:49+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap30.xml</loc>
		<lastmod>2023-01-05T11:42:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/post-sitemap31.xml</loc>
		<lastmod>2026-06-19T12:00:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/page-sitemap.xml</loc>
		<lastmod>2026-05-14T12:48:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/horoscope_posts-sitemap.xml</loc>
		<lastmod>2026-06-14T05:24:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/horoscope_posts-sitemap2.xml</loc>
		<lastmod>2022-08-20T17:33:30+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/horoscope_posts-sitemap3.xml</loc>
		<lastmod>2023-06-11T06:43:34+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/horoscope_posts-sitemap4.xml</loc>
		<lastmod>2026-06-14T05:24:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/sponsored-sitemap.xml</loc>
		<lastmod>2026-06-19T09:48:28+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/category-sitemap.xml</loc>
		<lastmod>2026-06-19T11:40:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/defi_cat-sitemap.xml</loc>
		<lastmod>2020-03-16T23:15:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/horoscope-sitemap.xml</loc>
		<lastmod>2026-06-14T05:24:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://cryptonomist.ch/author-sitemap.xml</loc>
		<lastmod>2026-05-13T15:15:25+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->