How can i customize the thank you or order confirmation page?

The thank you or order confirmation page can be customized in different ways, if you want to do without plugins altogether.

1st variant: Via redirection to a separate subpage

add_action( 'template_redirect', 'woo_custom_redirect_after_purchase' );
function woo_custom_redirect_after_purchase() {
  global $wp;
  if ( is_checkout() && !empty( $wp->query_vars['order-received'] ) ) {
    wp_redirect( '' );

2nd variant: Customize the Woocommerce page

// Change the heading

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 = "Vielen Dank für Ihre Bestellung und alles andere";
  return $title;

// Change the second heading

add_filter('woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 );

function woo_change_order_received_text( $str, $order ) {
    $new_str = 'Dies steht nun in der zweiten Zeile';
    return $new_str;

// Forwarding to a separate subpage for a specific product (based on the product ID)

add_action( 'woocommerce_thankyou', 'redirect_product_based', 1 ); 
function redirect_product_based ( $order_id ){
            $order = wc_get_order( $order_id );
            foreach( $order->get_items() as $item ) {
                if ( $item['product_id'] == 643 ) {
                     wp_redirect( 'https://www.weiterleitungzurunterseite' );



Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.
  • Developed 2023
  • CMS WordPress
  • Status Completed

Just a Web-Developer

Creating a developer’s own website is always a big challenge. You want to integrate all the cool features and show all your skills. Therefore, it is rather called here to make cutbacks and to put the information in the foreground. I hope this is halfway successful here.
To add value, I’ve taken the „Helpful Code Snippets“ element form my old website and integrated a search function for them.

  • Developed 2022
  • CMS WordPress
  • Status Completed

Tatort Ruhrpott

A few years ago I had the idea for a photo project. I wanted to photograph crime scenes from the Ruhr region and show how these places look today. During the Corona Pandemic 2021, I started taking the photos and at the beginning of 2022, I started implementing the corresponding website.

  • Developed 2018
  • CMS WordPress
  • Status Completed

CMS Geek

CMS Geek was a website project that I started in 2018 and was supposed to introduce users to the functions of WordPress through explanatory videos. In addition to a blog that informed about the latest news about WordPress and Joomla, there were also helpful code solutions to common WordPress, html and CSS problems.

Due to the lack of time to produce more explainer videos, I discontinued this project in spring 2023. I have taken over the code snippets for Just-a-Web-Developer, updated them and will continue to expand them.