Created
January 5, 2019 09:18
-
-
Save Tsunamijaan/e306fd6b21e3db023478e0326848901d 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