aam_geo_adapter_filter
Purpose
Provide the premium geolocation adapter. Premium.
Callback
- Type: Filter.
- Arguments:
$instance,$adapter. - Return: the filtered first argument.
Example
add_filter('aam_geo_adapter_filter', function ($instance, $adapter) {
if ($instance === null && $adapter === 'myapp' && class_exists('MyApp_Geo_Adapter')) {
return new MyApp_Geo_Adapter();
}
return $instance;
}, 10, 2);
Selects an integration-provided geolocation adapter for the configured myapp name. Implement the adapter class before using this snippet.
See the complete hook list.