Skip to main content

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_contact
  • fc_step_title_shipping
  • fc_step_title_billing
  • fc_step_title_payment

Signature​

apply_filters( 'fc_step_title_{step_id}', $step_title, $context );

Parameters​

NameTypeDescription
$step_titlestringCheckout step title.
$contextstringContext 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
);