Uses
Uses | Description |
---|---|
wp-includes/class-wp-http-cookie.php: wp_http_cookie_value | Filters the header-encoded cookie value. |
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Convert cookie name and value back to header string.
(string) Header encoded cookie name and value.
File: wp-includes/class-wp-http-cookie.php
public function getHeaderValue() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid if ( ! isset( $this->name ) || ! isset( $this->value ) ) { return ''; } /** * Filters the header-encoded cookie value. * * @since 3.4.0 * * @param string $value The cookie value. * @param string $name The cookie name. */ return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name ); }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_cookie/getheadervalue