gform_progressbar_start_at_zero

Description

The gform_progressbar_start_at_zero filter allows developers to change the progress bar on multi-page forms to start at zero percent. By default, the progress bar starts as if your first step has been completed.

Usage

add_filter( 'gform_progressbar_start_at_zero', '__return_true' );

Parameters

This hook has no parameters.

Examples

Start the progress bar at zero percent.

add_filter( 'gform_progressbar_start_at_zero', '__return_true' );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Since

This filter was added in Gravity Forms version 1.6.3.

Source Code

This filter is located in the following methods in form_display.php:

  • GFFormDisplay::get_form()
  • GFFormDisplay::get_progress_bar()