Created
October 6, 2017 09:08
-
-
Save AlKov/866b7c768ace2ee3ff2cf68e6743d80f to your computer and use it in GitHub Desktop.
Check whether our 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
// display name and avatar | |
function alex_vitorials_get_user_unique_name(){ | |
// check whether our user is logged in or not | |
if ( ! is_user_logged_in() ) { return; } // if not, return nothing | |
else { //our code would go here } // return something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment