WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/wp auth check"

m (Return)
(Added basic info about this function)
Line 1: Line 1:
 
==Description==
 
==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.
   
 
==Parameters==
 
==Parameters==
Line 22: Line 23:
 
== Source File ==
 
== Source File ==
 
<!-- Need links to current source code files -->
 
<!-- Need links to current source code files -->
<tt>wp_auth_check()</tt> is located in {{Trac|wp-whatever/file.php}}.
+
<tt>wp_auth_check()</tt> is located in {{Trac|wp-includes/functions.php}}.
   
 
==Related==
 
==Related==

Revision as of 16:38, 2 August 2013

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.

Parameters

$var
(TYPE) (required) Description.
Default: None
$var
(TYPE) (optional) Description.
Default: DEFAULT

Return

(TYPE) 
Description.

Usage

 <?php  ?> 

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.