Automattic\WooCommerce\Blueprint\ResourceStorages

OrgPluginResourceStorage::download_url │ protected │ WC 1.0

Download the file from the given URL.

Метод класса: OrgPluginResourceStorage{}

Хуков нет.

Возвращает

string|WP_Error. The path to the downloaded file, or WP_Error on failure.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->download_url( $url );
$url(строка) (обязательный)
The URL to download the file from.

Код OrgPluginResourceStorage::download_url() WC 11.2.2

protected function download_url( $url ) {
	return $this->wp_download_url( $url );
}