wp_loginout

SummerySummery

Display the Log In/Out link.

Syntax

wp_loginout( string $redirect = '', bool $echo = true )

DescriptionDescription

Displays a link, which allows users to navigate to the Log In page to log in or log out depending on whether they are currently logged in.

ParametersParameters

$redirect

(string) (Optional) path to redirect to on login/logout.

Default value: ''

$echo

(bool) (Optional) Default to echo and not return the link.

Default value: true

ReturnReturn

(void|string) Void if $echo argument is true, log in/out link if $echo is false.

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top