wp_loginout [ WordPress Function ]
wp_loginout ( $redirect = '', $echo = true )
| Parameters: |
|
| Uses: | |
| Defined at: |
|
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.
Source
<?php
function wp_loginout($redirect = '', $echo = true) {
if ( ! is_user_logged_in() )
$link = '<a href="' . esc_url( wp_login_url($redirect) ) . '">' . __('Log in') . '</a>';
else
$link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>';
if ( $echo )
echo apply_filters('loginout', $link);
else
return apply_filters('loginout', $link);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp loginout « WordPress Codex
Description. Displays a login link, or if a user is logged in, displays a logout link. An optional, redirect argument can be used to redirect the user upon login or ...
codex.wordpress.org - WordPress › Support » Tags — wp_loginout
(forgot?) Register · WordPress › Support » wp_loginout ...
wordpress.org - 5 Useful WordPress Functions You Didn't Know Existed - Nathan Rice
Jun 3, 2009 ... 2. wp_loginout(). This function gives us the ability to display a “Login” link on our theme, so we can easily log in without having to manually type ...
www.nathanrice.net - Wp_loginout Change In Functions.php | Sarasota Web Design, 3d ...
WordPress has a built in function for logging users in and out called 'wp_loginout' . The default text displayed for this is 'Log in' and 'Log out' respectively.
www.razworks.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- aminabbasian on "Issue with wp_loginout();"
- nakedsoul on "wp_loginout(); in english"
- SwansonPhotos on "wp_loginout(); in english"
- nakedsoul on "wp_loginout(); in english"
- SwansonPhotos on "wp_loginout(); in english"
- nakedsoul on "wp_loginout(); in english"
- SwansonPhotos on "wp_loginout(); in english"
- nakedsoul on "wp_loginout(); in english"
- Jeff Farthing on "wp_loginout() not showing as logged in with Theme My Login"
- dangrgal on "wp_loginout() not showing as logged in with Theme My Login"