fc_pro_order_received_secondary_text
Type: Filter
Filters the text for order received secondary.
Signature
apply_filters( 'fc_pro_order_received_secondary_text', $text, $order );
Parameters
| Name | Type | Description |
|---|---|---|
$text | string | Text. Default empty. |
$order | \WC_Order | Order object. |
Since
1.3.0
Source: templates/fc-pro/order-received/checkout/order-received-successful.php
Examples
add_filter( 'fc_pro_order_received_secondary_text',
/**
* Customize secondary text based on order status.
*
* @param string $text Text. Default empty.
* @param \WC_Order $order Order object.
* @return string Filtered value.
*/
function( $text, $order ) {
if ( 'on-hold' === $order->get_status() ) {
return __( 'We will process your order as soon as your payment is confirmed. Follow the steps below to complete it.', 'text-domain' );
}
return $text;
},
100,
2
);