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

In this article

Filters whether the auth cookie should only be sent over HTTPS.

Parameters

$securebool
Whether the cookie should only be sent over HTTPS.
$user_idint
User ID.

Source

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

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.