<?php
defined( 'ABSPATH' ) || exit;




/**
 * REEID SEO — Master Bootstrap
 *
 * Rules:
 * - Woo SEO and Page SEO are 100% isolated
 * - Woo translations are INLINE only (no child posts)
 * - Non-Woo pages may use physical translations
 * - WP Repo safe
 */

/* ---------------------------------------------------------
 * Common helpers (always safe)
 * --------------------------------------------------------- */
require_once __DIR__ . '/common/guards.php';
require_once __DIR__ . '/pages/sitemap-pages-integration.php';

/* ---------------------------------------------------------
 * WooCommerce SEO (INLINE ONLY — late gated)
 * IMPORTANT: NO is_product() HERE
 * --------------------------------------------------------- */
require_once __DIR__ . '/woo/seo-plugin-neutralize.php';
require_once __DIR__ . '/woo/canonical-woo.php';
require_once __DIR__ . '/woo/hreflang-woo-inline.php';
require_once __DIR__ . '/woo/html-lang-woo.php';
require_once __DIR__ . '/woo/robots-woo-inline.php';


/* ---------------------------------------------------------
 * Normal pages (posts / pages / CPTs)
 * --------------------------------------------------------- */
require_once __DIR__ . '/pages/seo-plugin-neutralize.php';
require_once __DIR__ . '/pages/canonical-pages.php';
add_action( 'plugins_loaded', function () {
    require_once __DIR__ . '/pages/hreflang-pages.php';
});