secure_auth_cookie WordPress Filter Hook
The secure_auth_cookie hook is used to ensure that the authentication cookie is only sent over a secure connection. This is important for security purposes, as it helps to prevent cookies from being intercepted by third-parties.
apply_filters( 'secure_auth_cookie', bool $secure , int $user_id ) #
Filters whether the auth cookie should only be sent over HTTPS.
Parameters
- $secure
(bool)Whether the cookie should only be sent over HTTPS.
- $user_id
(int)User ID.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |