wp_loginout


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

Parameters:
  • (string) redirect Optional path to redirect to on login/logout.
  • (bool) echo Default to echo and not return the link.
Returns:
  • (void|string) Void if `$echo` argument is true, log in/out link if `$echo` is false.
Defined at:

Description

Display the Log In/Out link.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.

Related Functions

wp_logout, wp_login, wp_login_url, wp_login_form, wp_logout_url

Top Google Results

User discussions

wpseek mobile