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 ]
Top Google zoekresultaten
- 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 - WordPress › Support » How to add a selector to wp_loginout
I'm trying to style wp_loginout without success. Shouldn't this work? ... Posted 1 year ago #. http://codex.wordpress.org/Function_Reference/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
Gebruikersdiscussies [ 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"