[wp-hackers] 1.5.1 Release
    Daniel Westermann-Clark 
    daniel at acceleration.net
       
    Sun Apr 24 12:52:22 GMT 2005
    
    
  
On 2005-04-23 16:52:31 -0400, Mark Jaquith wrote:
> 0001239: Allow a 'redirect_to' parameter on logout.  io_error wrote
> some great code to show the login/logout form on the front page of
> the blog.  With this patch, when using his code, you won't be thrown
> to the default login page after every logout, but instead go back to
> the page you were on.
> http://mosquito.wordpress.org/view.php?id=1239
Plugins can hook into the wp_logout action to redirect somewhere other
than the login page.  For example:
add_action('wp_logout', 'example_logout');
function example_logout() {
  header('Location: ' . get_settings('siteurl'));
  exit();
}
-- 
Daniel Westermann-Clark
    
    
More information about the wp-hackers
mailing list