WC_Integration_MaxMind_Geolocation::get_database_prefix()privateWC 1.0

Fetches the prefix for the MaxMind database file.

{} It's a method of the class: WC_Integration_MaxMind_Geolocation{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->get_database_prefix();

Code of WC_Integration_MaxMind_Geolocation::get_database_prefix() WC 6.7.0

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;
}