Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,002
- How-to & Troubleshooting
- 129,607
- Creating & Extending
- 25,788
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,791
- Showcase
- 3,316
- Ideas
- 1,384
- Miscellaneous
- 9,172
-
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’;