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)


Top ↑

Source

File: wp-includes/Requests/Cookie.php

	public function formatForSetCookie() {
		return $this->format_for_set_cookie();
	}

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.