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: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
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.