Yoast\WP\SEO\Helpers

Curl_Helper::get_version()publicYoast 1.0

Returns the currently installed cURL version.

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

Хуков нет.

Возвращает

Строку|null. Returns a string containing the cURL version, or null if cURL is not installed.

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

$Curl_Helper = new Curl_Helper();
$Curl_Helper->get_version();

Код Curl_Helper::get_version() Yoast 22.4

public function get_version() {
	$version = \curl_version();

	if ( ! isset( $version['version'] ) ) {
		return null;
	}

	return $version['version'];
}