fc_checkout_after_step

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

Description #

Fires after 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 closing tag with dynamic comments
 */
function add_div_closing_tag( $step_id, $step_args, $step_index, $context ) {
    $comment = 'End of ' . esc_html( $step_id ) . ' step';
    
    // Add additional context if available
    if ( isset( $step_args['title'] ) ) {
        $comment .= ' - ' . esc_html( $step_args['title'] );
    }
    
    echo '<!-- ' . $comment . ' -->';
    echo '</div>';
}
add_action( 'fc_checkout_after_step', 'add_div_closing_tag', 10, 4 );

What are your feelings

Updated on December 16, 2025