/**
 * Help Yoast SEO analyze Flatsome UX Builder shortcode content
 * Flatsome stores page content as [shortcodes] in post_content.
 * strip_shortcodes() removes the content between registered shortcode tags,
 * so we use regex to just remove the [tag] markers, keeping the text.
 */
add_filter('wpseo_pre_analysis_post_content', function($content, $post) {
    if ($post instanceof WP_Post) {
        $raw_content = $post->post_content;
        
        // Check UX Builder meta and merge
        $ux_content = get_post_meta($post->ID, '_ux_builder_content', true);
        if (!empty($ux_content)) {
            $raw_content = $ux_content;
        }
        
        // Remove shortcode tags but KEEP the content between them
        // strip_shortcodes() removes content for registered shortcodes, so use regex
        $text = preg_replace('/\[(\[?)([^\]]*?)(\]?)\]/', '', $raw_content);
        $text = str_replace(array("\r\n", "\r"), "\n", $text);
        $text = wp_strip_all_tags($text, true);
        $text = html_entity_decode($text, ENT_QUOTES | ENT_HTML5, 'UTF-8');
        $text = preg_replace('/\n\s*\n/', "\n", $text); // remove blank lines
        
        if (!empty(trim($text))) {
            $content = $text;
        }
    }
    return $content;
}, 10, 2);
}, 10, 2);
    return $content;
}, 10, 2);<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//thecanavape.co.uk/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://thecanavape.co.uk/page-sitemap.xml</loc>
		<lastmod>2026-07-17T23:53:37+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/blocks-sitemap.xml</loc>
		<lastmod>2026-07-15T11:36:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/product-sitemap.xml</loc>
		<lastmod>2026-07-17T23:42:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/featured_item-sitemap.xml</loc>
		<lastmod>2016-08-28T09:39:54+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/product_cat-sitemap.xml</loc>
		<lastmod>2026-07-17T23:42:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/product_tag-sitemap.xml</loc>
		<lastmod>2026-07-17T23:42:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://thecanavape.co.uk/featured_item_category-sitemap.xml</loc>
		<lastmod>2016-08-28T09:39:54+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->