Remove the add to cart button for the specific user who has already purchased that product

  hook-woocommerce, php, product, woocommerce, wordpress

I want only allow one purchase for each product, so I want to disable the add to cart for the user who already purchased that product.
I’ve been reading and I think I should use the woocommerce_is_purchasable hook
but I have no idea how to do it, I would appreciate the help, thank you.

Source: Ask PHP