WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Integration_MaxMind_Database_Service::get_database_path() public WC 1.0

Fetches the path that the database should be stored.

{} Это метод класса: WC_Integration_MaxMind_Database_Service{}

Возвращает

Строку. The local database path.

Использование

$WC_Integration_MaxMind_Database_Service = new WC_Integration_MaxMind_Database_Service();
$WC_Integration_MaxMind_Database_Service->get_database_path();

Код WC_Integration_MaxMind_Database_Service::get_database_path() WC 4.7.1

<?php
public function get_database_path() {
	$uploads_dir = wp_upload_dir();

	$database_path = trailingslashit( $uploads_dir['basedir'] ) . 'woocommerce_uploads/';
	if ( ! empty( $this->database_prefix ) ) {
		$database_path .= $this->database_prefix . '-';
	}
	$database_path .= self::DATABASE . self::DATABASE_EXTENSION;

	/**
	 * Filter the geolocation database storage path.
	 *
	 * @param string $database_path The path to the database.
	 * @param int $version Deprecated since 3.4.0.
	 * @deprecated 3.9.0
	 */
	$database_path = apply_filters_deprecated(
		'woocommerce_geolocation_local_database_path',
		array( $database_path, 2 ),
		'3.9.0',
		'woocommerce_maxmind_geolocation_database_path'
	);

	/**
	 * Filter the geolocation database storage path.
	 *
	 * @since 3.9.0
	 * @param string $database_path The path to the database.
	 */
	return apply_filters( 'woocommerce_maxmind_geolocation_database_path', $database_path );
}