monsterinsights_yst_ga_filter_api_limit

Deprecated Filter: 'yst-ga-filter-api-limit'.

Description

(int) monsterinsights_yst_ga_filter_api_limit( (int) $limit ); 

Allow people to change the max results value in the API calls. Default value is 1000 results per call.

Returns (int)

Number of rows to request at most in API calls.

Parameters (1)

0. $limit (int)
Number of rows to request at most in API calls. Default 300.

Usage

  1. if ( !function_exists( 'monsterinsights_yst_ga_filter_api_limit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/deprecated.php'; 
  3.  
  4. // Number of rows to request at most in API calls. Default 300. 
  5. $limit = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_yst_ga_filter_api_limit($limit); 
  9.  

Defined (1)

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

/includes/deprecated.php  
  1. function monsterinsights_yst_ga_filter_api_limit( $limit ) { 
  2. $message = sprintf( __( 'Use %s instead.', 'google-analytics-for-wordpress' ), '<code>monsterinsights_reporting_get_max_api_limit</code>' ); 
  3. return _monsterinsights_apply_filters_deprecated( 'yst-ga-filter-api-limit', array( $limit ), '6.0.0', $message );