wp_http_cookie_value WordPress Filter Hook

The wp_http_cookie_value hook allows you to modify the value of an HTTP cookie before it is sent to the client. This hook is useful for cases where you need to change the value of a cookie based on some conditions. For example, you could use this hook to set a different cookie value for logged-in users.

apply_filters( 'wp_http_cookie_value', string $value, string $name ) #

Filters the header-encoded cookie value.


Parameters

$value

(string)The cookie value.

$name

(string)The cookie name.


Top ↑

Source

File: wp-includes/class-wp-http-cookie.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

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.