fc_checkout_before_step

Back to list of all filter and action hooks for Fluid Checkout Lite.

Description #

Fires before an individual checkout step is rendered.

Parameters #

  • $step_id (string) The step identifier.
  • $step_args (array) Step configuration arguments
  • $step_index (int) Zero-based index of the step in the checkout flow
  • $context (string) Context in which the step is being output. Defaults to checkout.

Examples #

/**
 * Add div opening tag with step-specific attributes
 */
function add_div_opening_tag( $step_id, $step_args, $step_index, $context ) {
    echo '<div class="custom-before-step" data-step-id="' . esc_attr( $step_id ) . '" data-step-index="' . esc_attr( $step_index ) . '">';
}
add_action( 'fc_checkout_before_step', 'add_div_opening_tag', 10, 4 );

What are your feelings

Updated on December 16, 2025