wp_logout_url [ WordPress Function ]
wp_logout_url ( $redirect = '' )
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Returns the Log Out URL.
Returns the URL that allows the user to log out of the site
Source
<?php
function wp_logout_url($redirect = '') {
$args = array( 'action' => 'logout' );
if ( !empty($redirect) ) {
$args['redirect_to'] = urlencode( $redirect );
}
$logout_url = add_query_arg($args, site_url('wp-login.php', 'login'));
$logout_url = wp_nonce_url( $logout_url, 'log-out' );
return apply_filters('logout_url', $logout_url, $redirect);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp logout url « WordPress Codex
Description. This Template Tag returns the URL that allows the user to log out of the site. Usage. <?php echo wp_logout_url( $redirect ); ?> Parameters ...
codex.wordpress.org - WordPress › Support » Tags — wp_logout_url
WordPress › Support » wp_logout_url. Tag: wp_logout_url Add New » ... Where to use template tags wp_login_url & wp_logout_url, 5, brasofilo, 8 months ...
wordpress.org - wp_logout_url()…. AGH!!! - Brass Blogs
Jun 22, 2011 ... So I'm putting in a link for the logout url, via wp_logout_url(), and I'm following the Codex instructions for the redirect. but as I continue testing, ...
brassblogs.com - wp_logout_url (WordPress Function) - WPSeek.com
WordPress lookup for wp_logout_url, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- kmessinger on "Logging out, and browser cache"
- tom2652 on "Logging out, and browser cache"
- kmessinger on "Logging out, and browser cache"
- tom2652 on "Logging out, and browser cache"
- kmessinger on "Logging out, and browser cache"
- tom2652 on "Logging out, and browser cache"
- kmessinger on "Logging out, and browser cache"
- tom2652 on "Logging out, and browser cache"
- mihailtrifunov on "Logout link in top nav menu"
- madivad on "WP 3.0 Login Logout redirect URL not working"