Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,001
- How-to & Troubleshooting
- 129,560
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,791
- Showcase
- 3,316
- Ideas
- 1,385
- Miscellaneous
- 9,169
-
If you check the code that you just posted by itself, you’re missing a bunch of variables like $avatar_dir, $item_id, $object, which is why your code isn’t working.
Just declare them manually:
$avatar_dir = ‘avatars’;
$item_id = THE USER ID YOU’RE CHECKING
$object = ‘user’;