From 5649cd732fa0940261b7048a09680258f830e182 Mon Sep 17 00:00:00 2001 From: martynmjones Date: Fri, 24 Nov 2023 14:58:40 +0000 Subject: [PATCH] Change install_wc hook --- tests/class-unittestsbootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/class-unittestsbootstrap.php b/tests/class-unittestsbootstrap.php index 4c4e97fd..388897a0 100644 --- a/tests/class-unittestsbootstrap.php +++ b/tests/class-unittestsbootstrap.php @@ -33,7 +33,7 @@ public function init() { // load WC tests_add_filter( 'muplugins_loaded', array( $this, 'load_plugins' ) ); - tests_add_filter( 'setup_theme', array( $this, 'install_wc' ) ); + tests_add_filter( 'init', array( $this, 'install_wc' ) ); tests_add_filter( 'option_active_plugins', [ $this, 'filter_active_plugins' ] ); // load the WP testing environment