Files
2meet-data-optimizer-quotat…/2meet-data-optimizer-quotation-addon.php
T
wpdev e7e761c102 feat(back-compat): 加入 WPDO_* class alias(E3)
核心的 class-tmdo-back-compat.php 在 plugins_loaded:4 執行,AddOn 於 :6
才載入,所以核心的 alias 表涵蓋不到 AddOn 類別 —— 姊妹外掛或第三方若
以 WPDO_* 名稱引用本 AddOn 的類別會直接 fatal。

新增 includes/back-compat-aliases.php,於 plugins_loaded:7 為本 AddOn
自有類別建立 WPDO_ alias;主檔加入 require。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
2026-07-31 06:03:47 +08:00

39 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Plugin Name: 2meet Data Optimizer — Quotation AddOn
* Plugin URI: https://2meet.io/2meet-data-optimizer/quotation
* Description: 2meet-quotation 8 張自訂表 (2mq_*) 註冊(含 hp_vendor post_type_link
* Version: 0.1.0
* Requires at least: 6.0
* Tested up to: 6.9.4
* Requires PHP: 8.1
* Requires Plugins: 2meet-data-optimizer, 2meet-quotation
* Author: 2meet
* Author URI: https://2meet.io
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tmdo-quotation
* Domain Path: /languages
*
* @package TMDO_QUOTATION
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'TMDO_QUOTATION_VERSION', '0.1.0' );
define( 'TMDO_QUOTATION_PATH', plugin_dir_path( __FILE__ ) );
define( 'TMDO_QUOTATION_URL', plugin_dir_url( __FILE__ ) );
define( 'TMDO_QUOTATION_FILE', __FILE__ );
require_once TMDO_QUOTATION_PATH . 'includes/class-tmdo-quotation-bootstrap.php';
require_once TMDO_QUOTATION_PATH . 'includes/back-compat-aliases.php';
/**
* Phase 4 任務:完成本 AddOn 的 includes/ 實作。
*
* @see ~/.claude/plans/wp-data-optimizer-2meet-data-optimizer-zesty-liskov.md
*/
add_action( 'plugins_loaded', array( 'TMDO_Quotation_Bootstrap', 'init' ), 6 );