Created
April 30, 2018 20:38
-
-
Save EastSideCode/b452fd0fd4f7a304fb0a8c4e1d869b79 to your computer and use it in GitHub Desktop.
For development mode, check if user is logged in
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 | |
// for development | |
$developmentMode = false; | |
$userLoggedIn = is_user_logged_in(); | |
$currentUser = wp_get_current_user(); | |
if (($currentUser->user_login == "lfico") && $userLoggedIn) { | |
$developmentMode = true; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment