Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: is_user_logged_in() | Determines whether the current visitor is a logged in user. |
Check whether a user is still logged in, for the heartbeat.
Send a result that shows a log-in box if the user is no longer logged in, or if their cookie is within the grace period.
(array) (Required) The Heartbeat response.
(array) The Heartbeat response with 'wp-auth-check' value set.
File: wp-includes/functions.php
function wp_auth_check( $response ) { $response['wp-auth-check'] = is_user_logged_in() && empty( $GLOBALS['login_grace_period'] ); return $response; }
Version | Description |
---|---|
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_auth_check