Created
July 2, 2014 11:20
-
-
Save ahmadnaser/a2069710ff42a14f414a to your computer and use it in GitHub Desktop.
logout from wordpress without confirmaiton
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
//logout from wordpress without confirmaiton | |
ob_start(); | |
wp_loginout(get_permalink()); | |
$loginoutlink = ob_get_contents(); | |
ob_end_clean(); | |
var logout_content4='<li id="" class="menu-item menu-item-type-post_type menu-item-object-page">'+ | |
'<?php echo $loginoutlink;?></li>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment