fc_step_title_{step_id}
Type: Filter
Filters the title of a checkout step.
The dynamic portion of the hook name, $step_id, refers to the checkout step ID. Additional hook names are created for steps registered by other plugins. Possible hook names include:
fc_step_title_contactfc_step_title_shippingfc_step_title_billingfc_step_title_payment
Signature
apply_filters( 'fc_step_title_{step_id}', $step_title, $context );
Parameters
| Name | Type | Description |
|---|---|---|
$step_title | string | Checkout step title. |
$context | string | Context in which the hook runs. Default checkout. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
In fc_step_title_{step_id}, contact replaces {step_id}.
add_filter( 'fc_step_title_contact',
/**
* Customize contact step title.
*
* @param string $step_title Checkout step title.
* @param string $context Context in which the hook runs. Default checkout.
* @return string Filtered value.
*/
function( $step_title, $context ) {
return __( 'Your Contact Information', 'your-text-domain' );
},
10,
2
);