gform_progressbar_start_at_zero

The Gravity Forms gform progressbar start at zero hook.

Description

apply_filters( 'gform_progressbar_start_at_zero', (unknown) $start_at_zero, (unknown) $form ); 

Parameters (2)

0. $start_at_zero (unknown)
The start at zero.
1. $form (unknown)
The form.

Usage

To run the hook, copy the example below.
  1. $start_at_zero = apply_filters( 'gform_progressbar_start_at_zero', $start_at_zero, $form ); 
  2.  
  3. if ( !empty( $start_at_zero ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gform_progressbar_start_at_zero callback 
  2. function filter_gform_progressbar_start_at_zero( $start_at_zero, $form ) { 
  3. // make filter magic happen here... 
  4. return $start_at_zero
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gform_progressbar_start_at_zero', 'filter_gform_progressbar_start_at_zero', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gform_progressbar_start_at_zero', 'filter_gform_progressbar_start_at_zero', 10, 2 ); 

Defined (2)

The filter is defined in the following location(s).

/form_display.php  
  1. $start_at_zero = apply_filters( 'gform_progressbar_start_at_zero', $start_at_zero, $form ); 
  1. $start_at_zero = apply_filters( 'gform_progressbar_start_at_zero', $start_at_zero, $form );