Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1471158

    Hi,
    I tried to change the thank you page title of woocommerce with several snippets like

    function filter_woocommerce_endpoint_order_received_title( $title, $endpoint, $action ) {   
        $title = __( 'Vielen Dank - Sie sind angemeldet!', 'woocommerce' );
        return $title;
    }
    add_filter( 'woocommerce_endpoint_order-received_title', 'filter_woocommerce_endpoint_order_received_title', 10, 3 );

    or

    function wps_custom_thankyou_page_heading( $thankyou_title, $order ) {
        $thankyou_title = 'Vielen Dank - Sie sind angemeldet!';
        return $thankyou_title;
    }
    add_filter( 'woocommerce_endpoint_order-received_title', 'wps_custom_thankyou_page_heading', 10, 2 );

    but nothing works. Any ideas?
    Many thanks, Stefan

    #1471180

    Hey westefan,

    Thank you for the inquiry.

    The woocommerce_endpoint_order-received_title filter should have worked. Could you provide a link to the site and upload a screenshot of the “Thank You” page?

    Best regards,
    Ismael

    #1471201

    I’m so sorry, Ismael, I made a mistake – the code works. Please close the thread.
    Thanks, Stefan

    #1471207

    Hi,

    Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change Woocommerce Thank you page title’ is closed to new replies.