Warning: This method has been deprecated. Use Requests_Cookie::format_for_set_cookie instead.
Requests_Cookie::formatForSetCookie() WordPress Method
The Requests_Cookie::formatForSetCookie() method is used to format a cookie for use in a Set-Cookie header. It takes the cookie's name, value, and options as parameters and returns a string that can be used in a Set-Cookie header.
Requests_Cookie::formatForSetCookie() #
Format a cookie for a Set-Cookie header
Return
(string)
Source
File: wp-includes/Requests/Cookie.php
public function formatForSetCookie() { return $this->format_for_set_cookie(); }
Expand full source codeCollapse full source codeView on TracView on GitHub