Because WooCommerce Subscriptions provides a way to easily customize the “Add to Cart/Sign Up Now” button text via the admin dashboard it is impractical and unfeasible to translate that button text on the front end of your shop. WooCommerce provides a filter named woocommerce_product_add_to_cart_text which can be used to translate this text, however. Below is an example:
Not sure what to do with code snippets? See What Do I Do With These Code Snippets?
Leave a Reply
You must be registered and logged in to post a comment.