Dynamically change product single add to cart button text if product is in cart in WooCommerce

Dynamically change product single add to cart button text if product is in cart in WooCommerce.

Snippet Type

Execute on Child Sites

Snippet

https://github.com/mainwp/Code-Snippets-Functions/blob/master/Execute%20a%20function%20on%20a%20child%20site/WooCommerce/dynamically-change-product-single-add-to-cart-button-text-if-product-is-in-cart.txt