diff --git a/2meet-data-optimizer-woocommerce-addon.php b/2meet-data-optimizer-woocommerce-addon.php index 8621feb..2057e02 100644 --- a/2meet-data-optimizer-woocommerce-addon.php +++ b/2meet-data-optimizer-woocommerce-addon.php @@ -13,6 +13,8 @@ * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: tmdo-woocommerce + * + * TablePrefix: ^(wc_[a-z_0-9]+|wpdo_wc_[a-z_0-9]+)$ * Domain Path: /languages * * @package TMDO_WOOCOMMERCE diff --git a/admin/class-tmdo-admin-wc.php b/admin/class-tmdo-admin-wc.php index 0e203fa..2775f9c 100644 --- a/admin/class-tmdo-admin-wc.php +++ b/admin/class-tmdo-admin-wc.php @@ -9,7 +9,7 @@ * - WC tables registered (count + health) * - Top vendors by commission (from wp_wpdo_wc_commissions) * - * @package WP_Data_Optimizer + * @package TMDO * @since 2.1.0 */ @@ -45,8 +45,8 @@ final class TMDO_Admin_WC { public static function register_menu(): void { add_submenu_page( 'tools.php', - __( 'WPDO WooCommerce', 'tmdo-woocommerce' ), - __( 'WPDO WC', 'tmdo-woocommerce' ), + __( 'WPDO WooCommerce', '2meet-data-optimizer' ), + __( 'WPDO WC', '2meet-data-optimizer' ), self::CAP, self::MENU_SLUG, array( __CLASS__, 'render' ) @@ -68,61 +68,61 @@ final class TMDO_Admin_WC { $totals = self::global_commission_totals(); ?>
-

+

-

- +

+
- + - + - +
- + - ⚠️ -   + ⚠️ +  
tables
-

+

0 ) : ?> -
+
-
+
$
-
+
$
-
+
$
-
+
-

+

- - - - - + + + + + @@ -141,16 +141,16 @@ final class TMDO_Admin_WC {
-

+

-

+

- - - + + + diff --git a/includes/class-tmdo-wc-orders-interceptor.php b/includes/class-tmdo-wc-orders-interceptor.php index 4567c25..0652f19 100644 --- a/includes/class-tmdo-wc-orders-interceptor.php +++ b/includes/class-tmdo-wc-orders-interceptor.php @@ -11,7 +11,7 @@ * * Reads from order via `wc_get_order()` — works for both HPOS and legacy. * - * @package WP_Data_Optimizer + * @package TMDO * @since 1.0.0 (legacy hpct_wc_orders write path) * @since 2.1.0 (wp_wpdo_wc_commissions custom table; HPOS-aware) */ diff --git a/includes/class-tmdo-wc-term-count-filter.php b/includes/class-tmdo-wc-term-count-filter.php index fc18070..be65d20 100644 --- a/includes/class-tmdo-wc-term-count-filter.php +++ b/includes/class-tmdo-wc-term-count-filter.php @@ -1,5 +1,4 @@ WooCommerce → 進階 → 功能', '關閉'