&lt;?php

if (! defined(&#039;WP_DEBUG&#039;)) {
	die( &#039;Direct access forbidden.&#039; );
}

add_action( &#039;wp_enqueue_scripts&#039;, function () {
	wp_enqueue_style( &#039;parent-style&#039;, get_template_directory_uri() . &#039;/style.css&#039; );
});

// Restore Exact Original BSNL Shetkari SIM Banner
add_action(&#039;init&#039;, function() {
    if (isset($_GET[&#039;brizy_media&#039;]) &amp;&amp; strpos($_GET[&#039;brizy_media&#039;], &#039;wp-4582d5628453deaa54625ead49ef74c9&#039;) !== false) {
        wp_redirect(&#039;https://shetkarihelpline.com/wp-content/uploads/2026/08/bsnl20shetkari20card20nondani.webp&#039;, 301);
        exit;
    }
});

add_action(&#039;template_redirect&#039;, function() {
    ob_start(function($html) {
        if (!is_string($html) || empty($html)) {
            return $html;
        }
        $banner_exact = &#039;https://shetkarihelpline.com/wp-content/uploads/2026/08/bsnl20shetkari20card20nondani.webp&#039;;

        $html = str_replace(&#039;https://shetkarihelpline.com/?brizy_media=wp-4582d5628453deaa54625ead49ef74c9.webp&amp;amp;brizy_crop=original&#039;, $banner_exact, $html);
        $html = str_replace(&#039;https://shetkarihelpline.com/?brizy_media=wp-4582d5628453deaa54625ead49ef74c9.webp&amp;brizy_crop=original&#039;, $banner_exact, $html);
        $html = str_replace(&#039;https://shetkarihelpline.com/wp-content/uploads/2026/08/bsnl_shetkari_sim_banner_1787085297264.jpg&#039;, $banner_exact, $html);

        return $html;
    });
});

// Expose Rank Math SEO PostMeta to WP REST API for 100% On-Page SEO Injection
add_action(&#039;init&#039;, function() {
    $meta_keys = [
        &#039;rank_math_title&#039;,
        &#039;rank_math_description&#039;,
        &#039;rank_math_focus_keyword&#039;,
        &#039;rank_math_canonical_url&#039;,
        &#039;rank_math_robots&#039;,
        &#039;rank_math_primary_category&#039;
    ];
    foreach ($meta_keys as $key) {
        register_post_meta(&#039;post&#039;, $key, [
            &#039;show_in_rest&#039; =&gt; true,
            &#039;single&#039; =&gt; true,
            &#039;type&#039; =&gt; &#039;string&#039;,
            &#039;auth_callback&#039; =&gt; function() {
                return current_user_can(&#039;edit_posts&#039;);
            }
        ]);
    }
});
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//shetkarihelpline.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://shetkarihelpline.com/post-sitemap.xml</loc>
		<lastmod>2026-08-19T15:48:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shetkarihelpline.com/page-sitemap.xml</loc>
		<lastmod>2026-08-18T21:01:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shetkarihelpline.com/category-sitemap.xml</loc>
		<lastmod>2026-08-19T15:48:27+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shetkarihelpline.com/author-sitemap.xml</loc>
		<lastmod>2026-08-20T00:18:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://shetkarihelpline.com/local-sitemap.xml</loc>
		<lastmod>2024-06-09T12:08:27+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->