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.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |