Core Function
View Source on Trac ↗ wp_loginout()
wp_loginout( mixed $redirect = '', mixed $display = true ) Displays the Log In/Out link.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $redirect string | Optional path to redirect to on login/logout. |
| $display bool | Default to echo and not return the link. |
Return Value
((void)
| string) Void if `$display` argument is true, log in/out link if `$display` is false.
Function Information
Since Version
1.5.0
Source File
wp-includes/general-template.php
Advertisement