wp_loginout


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

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

Description

Displays 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