Created
August 1, 2012 21:13
-
-
Save vc27/3230800 to your computer and use it in GitHub Desktop.
WordPress is user by user-login
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
/** | |
* Is User | |
* | |
* @version 0.1 | |
* @updated 08.01.12 | |
* | |
**/ | |
function is__user( $user_login = false ) { | |
global $userdata; | |
if ( $user_login AND $userdata->user_login == $user_login ) | |
return true; | |
else | |
return false; | |
} // end function is__user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment