Change button text Place Order code snippet
-
Hi. I have a Woocommerce shop where i want to change the text on the button “place order” with this code snippet:
add_filter(‘woocommerce_order_button_text’, ‘change_order_button_text_to_custom’);function change_order_button_text_to_custom($button_text) {
return ‘Afgiv bestilling’;
}But the change does not have any effect on the front end. The button is translated by the system (running Danish language) from “Place Order” to “Godkend og betal”.
My code snippet does not have any effect dispite the code snippet seems to be loaded on the page. Can anyone help?
I prefer to do this by the code snippet instead of using fx loca (translation plugin)The page I need help with: [log in to see the link]
The topic ‘Change button text Place Order code snippet’ is closed to new replies.