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 ); - } - } -}