Requests_Cookie_Jar::__construct() WordPress Method
The constructor for the Requests_Cookie_Jar class. This method accepts an array of cookies as its only parameter. The array can be of the form: array( 'name' => 'value', 'name2' => 'value2', // ... ) or an array of Requests_Cookie objects: array( new Requests_Cookie('name', 'value'), new Requests_Cookie('name2', 'value2'), // ... )
Requests_Cookie_Jar::__construct( array $cookies = array() ) #
Create a new jar
Contents
Parameters
- $cookies
(array)(Optional)Existing cookie values
Default value: array()
Source
File: wp-includes/Requests/Cookie/Jar.php
public function __construct($cookies = array()) { $this->cookies = $cookies; }
Expand full source codeCollapse full source codeView on TracView on GitHub