Docs: Improve documentation for auth_redirect()
.
Props atachibana. Fixes #47956. git-svn-id: https://develop.svn.wordpress.org/trunk@45924 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
27c877e2b9
commit
e2b68a4253
@ -1005,6 +1005,11 @@ if ( ! function_exists( 'auth_redirect' ) ) :
|
||||
/**
|
||||
* Checks if a user is logged in, if not it redirects them to the login page.
|
||||
*
|
||||
* When this code is called from a page, it checks to see if the user viewing the page is logged in.
|
||||
* If the user is not logged in, they are redirected to the login page. The user is redirected
|
||||
* in such a way that, upon logging in, they will be sent directly to the page they were originally
|
||||
* trying to access.
|
||||
*
|
||||
* @since 1.5.0
|
||||
*/
|
||||
function auth_redirect() {
|
||||
|
Loading…
Reference in New Issue
Block a user