How can I check if a WordPress user is logged in to bbpress?
-
I’m wanting to create conditional logic that responds to whether a user is logged in to bbpress.
Googling helped me to find these two functions:
bb_current_user_can()
bb_is_user_logged_in()However, when I use them, I get the error “Call to undefined function bb)…”.
This happens even when I tie my containing function to the hook ‘plugins_loaded’, which I believe fires after all activated plugins have loaded.
(I first tried to use the hook ‘wp’)
So I’m just double-checking…
Should I be able to use either of those two functions to test if a user requesting a resource is a logged-in bbpress user?
- You must be logged in to reply to this topic.