Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Determines if a step is the current active step in the checkout flow.
Parameters #
$is_current_step(bool) Whether the step is current.$step_id(string) The step identifier.$context(string) The context in which the step is being checked.
Examples #
/**
* Maybe set the contact step as the current step on the order pay page.
*/
function maybe_set_contact_step_current_order_pay( $is_current_step, $step_id, $context ) {
// Bail if not on order pay context
if ( 'order-pay' !== $context ) { return $is_current_step; }
// Bail if not the checking the contact step
if ( 'contact' !== $step_id ) { return $is_current_step; }
// Otherwise, return as current.
return true;
}
add_filter( 'fc_is_current_step', 'maybe_set_contact_step_current_order_pay', 10, 3 );
