Function Signature:
wp_loginout
Function Description:
Displays the Log In/Out link.
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Display login or logout link based on user's authentication status
echo wp_loginout();
// Display login or logout link with custom text for logged in and logged out users
echo wp_loginout( 'Login', 'Logout' );
// Display login or logout link with redirection to a custom URL after logging in or out
echo wp_loginout( '', '', false, true, 'http://example.com/my-account' );