|

srfm_ipapi_api_key

Description

Filters the API key used for the ipapi geolocation service. Defaults to ”.

Parameters

  • $api_key (string) – The ipapi API key.

Filter Source

PHP
/**
* filter source (Free) inc/helper.php 
*/
$api_key = apply_filters( 'srfm_ipapi_api_key', '' );

Filter Usage

PHP
add_filter( 'srfm_ipapi_api_key', 'my_callback', 10, 1 ); 
function my_callback( $api_key ) { 
return 'your-api-key'; 
}

Filter Example

PHP
add_filter( 'srfm_ipapi_api_key', 'my_callback', 10, 1 ); 
function my_callback( $api_key ) { 
return 'your-api-key'; 
}
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