wp_http_cookie_value filter-hook . WP 3.4.0
Filters the header-encoded cookie value.
Usage
add_filter( 'wp_http_cookie_value', 'filter_function_name_7874', 10, 2 ); function filter_function_name_7874( $value, $name ){ // filter... return $value; }
- $value(string)
- The cookie value.
- $name(string)
- The cookie name.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
wp_http_cookie_value
wp-includes/class-wp-http-cookie.php 227
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name );