Global $bp does not contain current_user data
-
If I wanted to create a dashboard for my users how would I go about this? I started with creating a page called “Dashboard” and redirecting logged in users to that page as opposed to their profile. I then setup a
page-dashboard.php
template in which I copiedpage.php
and began to modify its contents.The problem is none of the buddypress functions that render user details work because the global $bp is missing all relevant
current_user
information. If a method accepts auser_id
or `item_id then I pass the following variable:$user_id = get_current_user_id();
But short of that this feels extremely limited and I have to believe there is a better way. Any thoughts or suggestions that could help me getting rolling would be greatly appreciated.
- The topic ‘Global $bp does not contain current_user data’ is closed to new replies.