Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,841
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
Just put “global $bp;” in the PHP above where you need to use it. It’s better to find a function that provides the information you need directly, rather than accessing globals like this (though it’s a perfectly valid thing to want to do).
For example, to get the logged in user’s ID: get_current_user_id()