Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 1dd2a0d

Browse files
committed
Move the call to wc_custom_order_table() from 'plugins_loaded' to 'woocommerce_init'.
This ensures the plugin classes aren't loaded until after WooCommerce has been bootstrapped.
1 parent 6fe5eb1 commit 1dd2a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wc-custom-order-table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ function wc_custom_order_table() {
5050
return $wc_custom_order_table;
5151
}
5252

53-
add_action('plugins_loaded', 'wc_custom_order_table');
53+
add_action( 'woocommerce_init', 'wc_custom_order_table' );

0 commit comments

Comments
 (0)