Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Using wp_logout_url() http://codex.wordpress.org/Function_Reference/wp_logout_url */
- global $user_ID;
- if ($user_ID) {
- //user is logged in
- echo '<a href="<?php echo wp_logout_url(); ?>">Logout</a>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment