private static function get_api_key() {

	// Hämta nyckeln från Haga AI → API.
	$api_key = get_option( 'haga_ai_openai_key', '' );

	// Alternativa option-namn, ifall äldre version av pluginet
	// sparade nyckeln under ett annat namn.
	if ( empty( $api_key ) ) {
		$api_key = get_option( 'haga_ai_openai_api_key', '' );
	}

	if ( empty( $api_key ) ) {
		$api_key = get_option( 'haga_ai_api_key', '' );
	}

	// Fallback till wp-config.php.
	if ( empty( $api_key ) && defined( 'HAGA_AI_OPENAI_KEY' ) ) {
		$api_key = HAGA_AI_OPENAI_KEY;
	}

	return is_string( $api_key ) ? trim( $api_key ) : '';
}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//hagasouvenir.se/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://hagasouvenir.se/post-sitemap.xml</loc>
		<lastmod>2026-08-25T11:24:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/page-sitemap.xml</loc>
		<lastmod>2026-08-25T20:28:09+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product-sitemap1.xml</loc>
		<lastmod>2026-08-28T22:33:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product-sitemap2.xml</loc>
		<lastmod>2026-08-28T21:52:01+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product-sitemap3.xml</loc>
		<lastmod>2026-08-28T21:19:56+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product-sitemap4.xml</loc>
		<lastmod>2026-08-28T21:19:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product-sitemap5.xml</loc>
		<lastmod>2026-08-28T21:19:18+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/category-sitemap.xml</loc>
		<lastmod>2026-08-25T11:24:51+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hagasouvenir.se/product_cat-sitemap.xml</loc>
		<lastmod>2026-08-28T22:33:52+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->