User not set
-
Hello,
I have a site with Buddypress installed.
For some reason, when I click on “my profile” page, when I’m logged in with a certain type of users, I can see that current_user exists, and I have the button to edit my profile.
But when I’m logged with other types of users, the buton “Edit” is not there, because bp_is_my_profile returns false, because the user object is empty…I read somewhere that wp_get_current_user return 0 is it’s called at the wrong place. But here, it’s the same page, so it should return the same kind of information.
I don’t understand why this function returns nothing for some users…The only difference between these users is:
– I use Paid Memberships Pro, and some users pay a membership while others pay nothing. So the first ones have a “membership level” while the other ones don’t have any.Anyone have an idea of how I could solve it ?
I was thinking of creating a “free membership level” but I think it should work without having to do that.What do you think ?
Thanks for your help
- You must be logged in to reply to this topic.