Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
For development mode, check if user is logged in
<?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
You can’t perform that action at this time.