fc_checkout_start_step

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

Description #

Fires inside each checkout step section, before the sub-steps contents are 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 dynamic wrapper div to checkout steps
 */
function fc_add_step_wrapper( $step_id, $step_args, $step_index, $context ) {
    // Build dynamic classes
    $classes = array(
        'fc-step-wrapper',
        'fc-step-' . $step_id,
        'fc-step-index-' . $step_index
    );
    
    // Add context class if not default
    if ( $context !== 'checkout' ) {
        $classes[] = 'fc-step-context-' . $context;
    }
    
    printf( '<div class="%s" data-step="%s">', 
        esc_attr( implode( ' ', $classes ) ), 
        esc_attr( $step_id ) 
    );
}
add_action( 'fc_checkout_start_step', 'fc_add_step_wrapper', 10, 4 );

What are your feelings

Updated on December 16, 2025