fc_substep_title_{substep_id}
Type: Filter
Filters the title of a checkout substep.
The dynamic portion of the hook name, $substep_id, refers to the checkout substep ID. Additional hook names are created for substeps registered by other plugins. Possible hook names include:
fc_substep_title_contactfc_substep_title_shipping_addressfc_substep_title_shipping_methodfc_substep_title_order_notesfc_substep_title_billing_addressfc_substep_title_paymentfc_substep_title_coupon_codes
Signature
apply_filters( 'fc_substep_title_{substep_id}', $substep_title );
Parameters
| Name | Type | Description |
|---|---|---|
$substep_title | string | Checkout substep title. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
In fc_substep_title_{substep_id}, order_notes replaces {substep_id}.
add_filter( 'fc_substep_title_order_notes',
/**
* Rename the "Additional notes" substep heading.
*
* @param string $substep_title Checkout substep title.
* @return string Filtered value.
*/
function( $substep_title ) {
return __( 'Delivery instructions', 'my-theme' );
},
10
);