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

/**
 * REEID SEO — Legacy Freeze
 * Prevents old SEO emitters from ever running.
 * To be removed once legacy files are deleted.
 */

add_action( 'init', function () {

    // Woo legacy
    remove_action( 'wp_head', 'reeid_wc_hreflang', 96 );
    remove_action( 'wp_head', 'reeid_wc_hreflang_simple', 96 );
    remove_action( 'wp_head', 'reeid_wc_hreflang_products_virtual', 96 );

    // Generic legacy
    remove_action( 'wp_head', 'reeid_hreflang_emit_minimal', 99 );
    remove_action( 'wp_head', 'reeid_hreflang_print', 99 );
    remove_action( 'wp_head', 'reeid_hreflang_print_canonical', 99 );

}, 1 );
