Created
January 18, 2015 19:12
-
-
Save shahadat014/67325dc060dfd1096a83 to your computer and use it in GitHub Desktop.
logged conditional content WordPress
This file contains hidden or 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 if (is_user_logged_in() ): ?> | |
| <a href="<?php echo wp_logout_url() ?>" title="Logout">Logout</a> | |
| <?php else: ?> | |
| <a href="http://example.com/wp-login.php" title="Logout">Member Login</a> | |
| <?php endif ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment