W3cubDocs

/WordPress

apply_filters( ‘secure_logged_in_cookie’, bool $secure_logged_in_cookie, int $user_id, bool $secure )

Filters whether the logged in cookie should only be sent over HTTPS.

Parameters

$secure_logged_in_cookiebool
Whether the logged in cookie should only be sent over HTTPS.
$user_idint
User ID.
$securebool
Whether the auth cookie should only be sent over HTTPS.

Source

$secure_logged_in_cookie = apply_filters( 'secure_logged_in_cookie', $secure_logged_in_cookie, $user_id, $secure );

Changelog

Version Description
3.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/secure_logged_in_cookie