diff --git a/includes/features/onboarding/class-wc-admin-onboarding.php b/includes/features/onboarding/class-wc-admin-onboarding.php index e81b9031874..a10b25a5908 100644 --- a/includes/features/onboarding/class-wc-admin-onboarding.php +++ b/includes/features/onboarding/class-wc-admin-onboarding.php @@ -45,6 +45,10 @@ public static function get_instance() { * Hook into WooCommerce. */ public function __construct() { + if ( ! is_admin() ) { + return; + } + $this->includes(); add_action( 'woocommerce_components_settings', array( $this, 'component_settings' ), 20 ); // Run after WC_Admin_Loader. add_action( 'woocommerce_theme_installed', array( $this, 'delete_themes_transient' ) );