Customer functions woocommerce to wc refactor