|

srfm_geo_api_hourly_cap

Description

Filters the hourly cap on outbound geolocation API requests. Defaults to 40.

Parameters

  • $cap (int) – The hourly request cap.

Filter Source

PHP
/**
* filter source (Free) inc/helper.php 
*/
 $cap = apply_filters( 'srfm_geo_api_hourly_cap', 40 );

Filter Usage

PHP
add_filter( 'srfm_geo_api_hourly_cap', 'my_callback', 10, 1 ); 
function my_callback( $cap ) { 
return 100; 
}

Filter Example

PHP
add_filter( 'srfm_geo_api_hourly_cap', 'my_callback', 10, 1 ); 
function my_callback( $cap ) { 
return 100; 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top