WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp auth check

Description

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.

Usage

 <?php wp_auth_check$response ); ?> 

Parameters

$response
(array) (required) The Heartbeat response.
Default: None

Return

(array) 
The Heartbeat response with 'wp-auth-check' value set.

Example

Description text

Example code

Change Log

Source File

wp_auth_check() is located in wp-includes/functions.php.

Related

Function ref links

This article is marked as in need of editing. You can help Codex by editing it.