WP_CLI

RequestsLibrary::is_corepublic staticWP-CLI 1.0

Check if the current source for the Requests library is WordPress Core.

Method of the class: RequestsLibrary{}

No Hooks.

Returns

true|false. Whether the current source is WordPress Core.

Usage

$result = RequestsLibrary::is_core();

RequestsLibrary::is_core() code WP-CLI 2.13.0-alpha

public static function is_core() {
	return self::get_source() === self::SOURCE_WP_CORE;
}