Skip to main content

fc_thankyou_order_received_failed_title

Type: Filter

Filters the title for thankyou order received failed.

Signature​

apply_filters( 'fc_thankyou_order_received_failed_title', $title, $order );

Parameters​

NameTypeDescription
$titlestringTitle text.
$order\WC_OrderOrder object.

Since​

  • 1.3.0

Source: templates/fc-pro/order-received/checkout/order-received-failed.php

Examples​

add_filter( 'fc_thankyou_order_received_failed_title',
/**
* Customize failed order title.
*
* @param string $title Title text.
* @param \WC_Order $order Order object.
* @return string Filtered value.
*/
function( $title, $order ) {
return __( 'Payment Unsuccessful', 'text-domain' );
},
10,
2
);