Created
September 14, 2013 21:22
-
-
Save theukedge/6565757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$logoutlink = '<li><a href="'.wp_logout_url( home_url() ).'">Logout</a></li>'; // redirect to home page | |
$logoutlink = '<li><a href="'.wp_logout_url( get_permalink() ).'">Logout</a></li>'; // stay on same page | |
$logoutlink = '<li><a href="'.wp_logout_url( 'http://www.doitwithwp.com/about/' ).'">Logout</a></li>'; // go to specific URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment