secure_signon_cookie WordPress Filter Hook

The secure_signon_cookie WordPress hook is used to ensure that the user's session cookie is set to be secure. This is important for security, as it ensures that the cookie cannot be intercepted and used by a third party.

apply_filters( 'secure_signon_cookie', bool $secure_cookie, array $credentials ) #

Filters whether to use a secure sign-on cookie.


Parameters

$secure_cookie

(bool)Whether to use a secure sign-on cookie.

$credentials

(array)Array of entered sign-on data.

  • 'user_login'
    (string) Username.
  • 'user_password'
    (string) Password entered.
  • 'remember'
    (bool) Whether to 'remember' the user. Increases the time that the cookie will be kept. Default false.


Top ↑

Source

File: wp-includes/user.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
Show More