gform_next_button_<form_id>

The Gravity Forms gform next button form id hook.

Description

apply_filters( 'gform_next_button_<form_id>', (unknown) $next_button, $form ); 

Parameters (2)

0. $next_button (unknown)
The next button.
1. $form
The form.

Usage

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

Defined (1)

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

/form_display.php  
  1. $next_button = gf_apply_filters( array( 'gform_next_button', $form['id'] ), $next_button, $form );