Need Wordpress php code snippet for the following functions -- 2

Job ID: 31766843

Budget: $30 – $250 USD

FUNCTION 1:
I want to Enable guest checkout only in woocommerce.
But, we will auto register those guest users on checkout without letting them know.

FUNCTION 2:
Orders placed with same email address needs to be tied /merged/ linked under same account on woocommerce.


Resources, that may help you:
https://www.skyverge.com/blog/automatically-link-woocommerce-orders-customer-registration/
https://usersinsights.com/woocommerce-auto-register-users/
Related categories: PHP WordPress CSS HTML WooCommerce