WC_Integration_MaxMind_Geolocation::get_database_prefix()
Fetches the prefix for the MaxMind database file.
Метод класса: WC_Integration_MaxMind_Geolocation{}
Хуков нет.
Возвращает
Строку
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_database_prefix();
Код WC_Integration_MaxMind_Geolocation::get_database_prefix() WC Integration MaxMind Geolocation::get database prefix 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; }