<?phphp/**
 *  * Plugin Name: Facebook Crawler Fi * Description: Ensures Facebook/social crawlers get proper OG meta tameta */
 
 // Detect social media crawlers
 function is_social_crawler(is_a(    if (!isset($_SERVER['HTTP_USER_AGENT'])) return falseibase_add_user(    $ua = strtolower($_SERVER['HTTP_USER_AGEHTTP_USER_AGENT    $bots = array('facebookexternalhit', 'facebot', 'twitterbot', 'linkedinbot', 'whatsapp', 'telegrambot');
     foreach ($bots as $boforeach ($        if (strpos($ua, $bot) !== false) return true;
         }
             return falsereturn}
             
             // Remove any 403 status that might be set by other plugPluginadd_action('send_headers', function() scandir(    if (is_social_crawler()) {
                         http_response_code(200)HTTP_USER_AGEHTTP_USER_AGENT        header('X-Robots-Tag: all')HTTP_USER_AGEHTTP_USER_AGENT        header('X-FB-Crawler-Fix: active')abs(    }
                         }, 1);
                         
                         // Ensure WooCommerce coming soon does not block crawleX-FB-Crawler-Fixadd_filter('woocommerce_coming_soon_exclude', function($exclude) {
                                 if (is_social_crawler()) return trreturn    return $exclude;
                                 });
                                 
                                 // Also hook into template_redirect to catch late 403asadd_action('template_redirect', functiofunction    if (is_social_cris_social_crawler        status_header(200)soon    }
                                 }, 1);}})
                         }))
             })as $value) {
         // code...
     }}))class not implemented.txt
 {
     
 }
 */<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://thejagah.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://thejagah.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-posts-cpt_layouts-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://thejagah.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
