wp_authenticate_cookie [ WordPress Function ]
wp_authenticate_cookie ( $user, $username, $password )
| Defined at: |
|
Soorgelijke functies: wp_authenticate, wp_set_auth_cookie, wp_clear_auth_cookie, wp_parse_auth_cookie, wp_setcookie
Authenticate the user using the WordPress auth cookie.
Source
<?php
function wp_authenticate_cookie($user, $username, $password) {
if ( is_a($user, 'WP_User') ) { return $user; }
if ( empty($username) && empty($password) ) {
$user_id = wp_validate_auth_cookie();
if ( $user_id )
return new WP_User($user_id);
global $auth_secure_cookie;
if ( $auth_secure_cookie )
$auth_cookie = SECURE_AUTH_COOKIE;
else
$auth_cookie = AUTH_COOKIE;
if ( !empty($_COOKIE[$auth_cookie]) )
return new WP_Error('expired_session', __('Please log in again.'));
// If the cookie is not set, be silent.
}
return $user;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » Tags — wp_authenticate_cookie
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » wp_authenticate_cookie. Tag: wp_authenticate_cookie Add New » ...
wordpress.org - wp_authenticate_cookie
Function and Method Cross Reference. wp_authenticate_cookie(). Defined at: / wp-includes/user.php -> line 117. No references found.
phpxref.ftwr.co.uk - Authentication in WordPress 2.8 — willnorris.com
Mar 10, 2009 ... wp_authenticate_cookie() (priority 30) is only added into the filter chain when the user is authenticating via wp-login.php and does the normal ...
willnorris.com - wp-includes/user.php source - yukei.net
120 */ 121 function wp_authenticate_cookie($user, $username, $password) { 122 if ( is_a($user, 'WP_User') ) { return $user; } 123 124 if ( empty($username) ...
lab.yukei.net