Get_currentuserinfo alternative in 3.3 beta 3?
-
Hello.
Just updated to WordPress 3.3 beta 3 and noticed that the following code isn’t working properly:
<?php get_currentuserinfo() ; global $user_level; if ($user_level >= 2) {?>
The code is supposed to check the current user that is logged in and see if that user is above a level (2), then display a specific link on the page. However, that link is not visible at all – logged in or logged out.
Are there any alternatives to achieving the same idea? Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get_currentuserinfo alternative in 3.3 beta 3?’ is closed to new replies.