Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Runs at checkout step registration and allows to modify the step’s arguments.
Only affects the checkout steps themselves, not the sub-steps. For changes to sub-steps use the filter:
fc_register_checkout_substep_args– Runs at checkout sub-step registration and allows to modify the sub-step’s arguments.
Parameters #
$step_args(array) Array of the step configuration arguments including:step_id(string) Unique identifier for the step.step_title(string) Display title for the step.priority(int) Step priority, or display order.proceed_to_step_button_label(string) Label for the proceed to next step button, displayed one step before this one being modified.next_step_button_classes(array) Additional CSS classes for next step button.render_condition_callback(callable) Function name or callable array to determine if the step should be rendered. If a callback is not provided the checkout step will be displayed.
Examples #
/**
* Customize checkout step arguments
*/
function customize_checkout_step_args( $step_args ) {
// Bail if not registering the Billing step
if ( 'billing' !== $step_args['step_id'] ) { return $step_args; }
// Change the billing step args
$step_args['proceed_to_step_button_label'] = __( 'Proceed to invoicing', 'your-text-domain' );
$step_args['next_step_button_classes'][] = 'custom-billing-button-class';
return $step_args;
}
add_filter( 'fc_register_checkout_step_args', 'customize_checkout_step_args', 10 );
