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
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
I’m so sorry, Ismael, I made a mistake – the code works. Please close the thread.
Thanks, Stefan
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