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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More