woocommerce_thankyou_order_received_title
Filter the title shown after a checkout is complete.
Usage
add_filter( 'woocommerce_thankyou_order_received_title', 'wp_kama_woocommerce_thankyou_order_received_title_filter', 10, 2 ); /** * Function for `woocommerce_thankyou_order_received_title` filter-hook. * * @param string $title The title. * @param WC_Order|false $order The order created during checkout, or false if order data is not available. * * @return string */ function wp_kama_woocommerce_thankyou_order_received_title_filter( $title, $order ){ // filter... return $title; }
- $title(string)
- The title.
- $order(WC_Order|false)
- The order created during checkout, or false if order data is not available.
Changelog
Since 9.6.0 | Introduced. |
Where the hook is called
woocommerce_thankyou_order_received_title
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php 86-90
apply_filters( 'woocommerce_thankyou_order_received_title', esc_html__( 'Order cancelled', 'woocommerce' ), $order )
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php 104-108
apply_filters( 'woocommerce_thankyou_order_received_title', esc_html__( 'Order refunded', 'woocommerce' ), $order )
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php 126-130
apply_filters( 'woocommerce_thankyou_order_received_title', esc_html__( 'Order completed', 'woocommerce' ), $order )
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php 151-155
apply_filters( 'woocommerce_thankyou_order_received_title', esc_html__( 'Order failed', 'woocommerce' ), $order )
woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php 165-169
apply_filters( 'woocommerce_thankyou_order_received_title', esc_html__( 'Order received', 'woocommerce' ), $order )