Problem with $bp->displayed_user->id
-
The following line of code (run during ‘init’ action) …
$userID = $bp->displayed_user->id;
produces an error in the debug.log.
Undefined property: stdClass::$idYet if I print_r($bp->displayed_user), the ‘id’ property is there and set.
I am using the latest WordPress and Buddypress.
What am I missing?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with $bp->displayed_user->id’ is closed to new replies.