Topic: Actions and Filters / Functions PHP File / WooCommerce / Wordpress

Customize WooCommerce thank you title

// ---Customize the thank you page title
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 = "Order Complete!";
  }
  return $title;
}