slimstat_maxmind_path
Applies to SlimStat 6.0.0 · checked
slimstat_maxmind_path receives a directory path string, not the array returned by wp_upload_dir(). SlimStat applies it to the resolved wp-content/uploads/wp-slimstat directory used for geolocation files.
add_filter( 'slimstat_maxmind_path', function ( $directory ) {
return $directory;
} );
Return a filesystem directory, not a URL or the path to one .mmdb file. If you override it, ensure WordPress can read it and that updates can write the required files. Keep shared storage permissions limited to the sites that need it.
See geolocation setup for provider-specific filenames and Multisite behavior.