How to Change the add to cart text on product pages?

In this tutorial We will learn how to change the text of add to cart button on the single product page. We don’t need to edit woocommerce plugin files Instead, We will edit Child WordPress Themes file known as functions.php.

Before moving towards solution, I assume that you already have added a product in your woocommerce shop. If you haven’t added any product yet; Go to the admin panel and add a product.

This is how add to cart button looks like initially:

Luckily, woocommerce provide a filter for this general purpose query as well. We can change the text by using following piece of code.