Requests_Session::__get() WordPress Method

The WordPress Requests_Session::__get() method is used to retrieve a value from a property of the Requests_Session class. The value retrieved can be of any type, including an object, array, or string.

Requests_Session::__get( string $key ) #

Get a property’s value


Parameters

$key

(string)(Required)Property key


Top ↑

Return

(mixed|null) Property value, null if none found


Top ↑

Source

File: wp-includes/Requests/Session.php

	public function __get($key) {
		if (isset($this->options[$key])) {
			return $this->options[$key];
		}

		return null;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.