Skip to content
Advertisement

Change WooCommerce thankyou page title based on order status

Attempting to change the title of the thank you page based on specific order statuses, by combining a filter and action as follows:

JavaScript

but I have tried multiple ways to combine the two and without any success.

Advertisement

Answer

You can use the following to change “Order received” page title based on order statuses:

JavaScript

Code goes in functions.php file of the active child theme (or active theme). Tested and works.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement