Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,493
- How-to & Troubleshooting
- 127,654
- Creating & Extending
- 25,623
- Requests & Feedback
- 9,375
- Third Party Plugins
- 9,703
- Showcase
- 3,317
- Ideas
- 1,320
- Miscellaneous
- 8,827
-
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’;
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS