WC_Integration_MaxMind_Geolocation::get_database_prefix
Fetches the prefix for the MaxMind database file.
Method of the class: WC_Integration_MaxMind_Geolocation{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->get_database_prefix();
WC_Integration_MaxMind_Geolocation::get_database_prefix() WC Integration MaxMind Geolocation::get database prefix code WC 10.8.1
private function get_database_prefix() {
$prefix = $this->get_option( 'database_prefix' );
if ( empty( $prefix ) ) {
$prefix = wp_generate_password( 32, false );
$this->update_option( 'database_prefix', $prefix );
}
return $prefix;
}