Created
May 16, 2022 17:10
-
-
Save lukecav/61f02649db4d776cd4f42f6d8053e931 to your computer and use it in GitHub Desktop.
Enable custom order tables feature in WooCommerce (beta)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enable_cot(){ | |
$order_controller = wc_get_container() | |
->get('Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController'); | |
if( isset( $order_controller ) ) { | |
$order_controller->show_feature(); | |
} | |
} | |
add_action( 'init', 'enable_cot', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.woocommerce.com/2022/05/16/call-for-early-testing-custom-order-table-migrations/
woocommerce/woocommerce#32938