WC_Integration_MaxMind_Geolocation::get_database_prefix()privateWC 1.0

Fetches the prefix for the MaxMind database file.

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();

WC_Integration_MaxMind_Geolocation::get_database_prefix() code WC 8.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;
}