Skip to main content

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_contact
  • fc_substep_title_shipping_address
  • fc_substep_title_shipping_method
  • fc_substep_title_order_notes
  • fc_substep_title_billing_address
  • fc_substep_title_payment
  • fc_substep_title_coupon_codes

Signature​

apply_filters( 'fc_substep_title_{substep_id}', $substep_title );

Parameters​

NameTypeDescription
$substep_titlestringCheckout 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
);