From 7266042b796c57e3ff8613d426196ff784e55e00 Mon Sep 17 00:00:00 2001 From: Timmy Crawford Date: Fri, 13 Mar 2020 11:42:01 -0700 Subject: [PATCH] Create database tables earlier - like core. (https://github.com/woocommerce/woocommerce-admin/pull/3899) Co-authored-by: Jeff Stieler --- plugins/woocommerce-admin/src/Install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/src/Install.php b/plugins/woocommerce-admin/src/Install.php index 7977f4347fb..630d61b019f 100644 --- a/plugins/woocommerce-admin/src/Install.php +++ b/plugins/woocommerce-admin/src/Install.php @@ -62,7 +62,7 @@ class Install { * Hook in tabs. */ public static function init() { - add_action( 'admin_init', array( __CLASS__, 'check_version' ), 5 ); + add_action( 'init', array( __CLASS__, 'check_version' ), 5 ); add_filter( 'wpmu_drop_tables', array( __CLASS__, 'wpmu_drop_tables' ) ); // Add wc-admin report tables to list of WooCommerce tables.