WP_CLI
RequestsLibrary::is_v1
Check if the current version is v1.
Method of the class: RequestsLibrary{}
No Hooks.
Returns
true|false. Whether the current version is v1.
Usage
$result = RequestsLibrary::is_v1();
RequestsLibrary::is_v1() RequestsLibrary::is v1 code WP-CLI 2.13.0-alpha
public static function is_v1() {
return self::get_version() === self::VERSION_V1;
}