gform_web_api_capability_get_results

The Gravity Forms gform web api capability get results hook.

Description

apply_filters( 'gform_web_api_capability_get_results', (string) $gravityforms_view_entries ); 

Parameters (1)

0. $gravityforms_view_entries (string) => 'gravityforms_view_entries'
The gravityforms view entries.

Usage

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

Defined (1)

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

/includes/webapi/webapi.php  
  1. $capability = apply_filters( 'gform_web_api_capability_get_results', 'gravityforms_view_entries' );