Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Runs at checkout sub-step registration and allows to modify the sub-step’s arguments.
Only affects checkout sub-steps, not usable for changes to checkout steps. For changes to checkout steps use the filter:
fc_register_checkout_step_args– Runs at checkout step registration and allows to modify the step’s arguments.
Parameters #
$substep_args(array) Array of sub-step configuration arguments containing:substep_id(string)(required) Unique identifier for the sub-step.substep_title(string) Display title for the sub-step.priority(int) Display order priority for the sub-step.render_fields_callback(callable) Function to render sub-step fields.render_review_text_callback(callable) Function to render sub-step review text.render_condition_callback(callable) Function to determine if sub-step should be rendered.is_complete_callback(callable) Function to determine if sub-step is complete.additional_attributes(array) Array of additional attributes to add to the sub-step container start tag.
$step_id(string) The parent step ID. Usuallycontact,shipping,billing, orpayment, and can also be a custom step id.
Examples #
/**
* Customize checkout sub-step arguments.
*/
function customize_checkout_substep_args( $substep_args, $step_id ) {
if ( 'shipping_address' === $substep_args['substep_id'] ) {
$substep_args['substep_title'] = __( 'Delivery Address', 'your-text-domain' );
}
return $substep_args;
}
add_filter( 'fc_register_checkout_substep_args', 'customize_checkout_substep_args', 10, 2 );
