WPDev.one
Core Function
View Source on Trac ↗

wp_parse_auth_cookie()

wp_parse_auth_cookie( mixed $cookie = '', mixed $scheme = '' )

Parses a cookie into its components.

Parameters 0 required

Name / Type Description
$cookie
string

Authentication cookie.

$scheme
string

Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'.

Return Value

((string[])
(string[] | false) { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. If the cookie value is malformed, false is returned.

Function Information

Since Version
2.7.0
Source File
wp-includes/pluggable.php
Advertisement