fc_pro_order_pay_substep_{substep_id}_text
Type: Filter
Filters the review text HTML for an order pay substep.
The dynamic portion of the hook name, $substep_id, is the order pay substep ID. Possible hook names include:
fc_pro_order_pay_substep_billing_address_textfc_pro_order_pay_substep_contact_textfc_pro_order_pay_substep_order_notes_textfc_pro_order_pay_substep_payment_textfc_pro_order_pay_substep_shipping_address_textfc_pro_order_pay_substep_shipping_method_text
Signature
apply_filters( 'fc_pro_order_pay_substep_{substep_id}_text', $html, $order );
Parameters
| Name | Type | Description |
|---|---|---|
$html | string | HTML markup. |
$order | \WC_Order | Order object. |
Since
3.0.0
Source: inc/order-pay-page.php
Examples
In fc_pro_order_pay_substep_{substep_id}_text, shipping_method replaces {substep_id}.
add_filter( 'fc_pro_order_pay_substep_shipping_method_text',
/**
* Customize shipping method substep review text.
*
* @param string $html HTML markup.
* @param \WC_Order $order Order object.
* @return string Filtered value.
*/
function( $html, $order ) {
// Wrap in custom div
return '<div class="custom-shipping-review">' . $html . '</div>';
},
10,
2
);