From ef86a7139c80868fcf8b06308fb4295ba6555000 Mon Sep 17 00:00:00 2001 From: "Jorge A. Torres" Date: Tue, 5 Dec 2023 14:39:39 +0000 Subject: [PATCH] Updated High Performance Order Storage Upgrade Recipe Book (markdown) --- High-Performance-Order-Storage-Upgrade-Recipe-Book.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/High-Performance-Order-Storage-Upgrade-Recipe-Book.md b/High-Performance-Order-Storage-Upgrade-Recipe-Book.md index 2dd652f..a5931d5 100644 --- a/High-Performance-Order-Storage-Upgrade-Recipe-Book.md +++ b/High-Performance-Order-Storage-Upgrade-Recipe-Book.md @@ -172,7 +172,7 @@ use Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableControlle add_action( 'add_meta_boxes', 'add_xyz_metabox' ); function add_xyz_metabox() { - $screen = wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() + $screen = class_exists( '\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController' ) && wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() ? wc_get_page_screen_id( 'shop-order' ) : 'shop_order';