Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change Title of WooCommerce Thank You page
<?php
add_filter( 'the_title', 'woo_title_order_received', 10, 2 );
function woo_title_order_received( $title, $id ) {
if ( function_exists( 'is_order_received_page' ) &&
is_order_received_page() && get_the_ID() === $id ) {
$title = "Thank you for your order! :)";
}
return $title;
}
@Atif0007
Copy link

Atif0007 commented Oct 25, 2017

Checkout Page keep loading after adding above script to function.php

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment