From 962bc1ea81d94a69f6eb79b29f0ff8e551ad4288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alda=20Vigd=C3=ADs=20Skarph=C3=A9=C3=B0insd=C3=B3ttir?= Date: Wed, 26 Jun 2024 17:00:14 +0200 Subject: [PATCH] Removing the rudamentary customer sync as the current prototype customer is not using it --- 1984-connector-for-dk-and-woocommerce.php | 1 - src/Hooks/UpdateUser.php | 61 ----------------------- 2 files changed, 62 deletions(-) delete mode 100644 src/Hooks/UpdateUser.php diff --git a/1984-connector-for-dk-and-woocommerce.php b/1984-connector-for-dk-and-woocommerce.php index 5ab86d3..f8c6e38 100644 --- a/1984-connector-for-dk-and-woocommerce.php +++ b/1984-connector-for-dk-and-woocommerce.php @@ -26,7 +26,6 @@ new Rest\Settings(); new Hooks\KennitalaField(); new Hooks\RegisterPostMeta(); -new Hooks\UpdateUser(); new Hooks\WooMetaboxes(); new Hooks\WooOrderStatusChanges(); new Hooks\WooProductVariations(); diff --git a/src/Hooks/UpdateUser.php b/src/Hooks/UpdateUser.php deleted file mode 100644 index 6a8face..0000000 --- a/src/Hooks/UpdateUser.php +++ /dev/null @@ -1,61 +0,0 @@ -get_id() ) { - return false; - } - - if ( true === ExportCustomer::has_dk_customer_number( $customer ) ) { - return ExportCustomer::update_in_dk( $customer ); - } else { - return ExportCustomer::create_in_dk( $customer ); - } - } -}