external_user_id ); } if ( class_exists( '\WC_Connect_Loader' ) ) { $wcs_version = \WC_Connect_Loader::get_wcs_version(); } if ( class_exists( '\WC_Connect_Options' ) ) { $wcs_tos_accepted = \WC_Connect_Options::get_option( 'tos_accepted' ); } if ( $jetpack_connected && $wcs_version && $wcs_tos_accepted ) { update_option( 'wc_connect_taxes_enabled', 'yes' ); update_option( 'woocommerce_calc_taxes', 'yes' ); Confirm_Tax_Settings::possibly_add_note(); } } /** * Check if automated taxes are supported. */ private static function automated_tax_is_supported() { return in_array( WC()->countries->get_base_country(), \OnboardingTasks::get_automated_tax_supported_countries(), true ); } }