[buddypress-trac] [BuddyPress Trac] #9276: error when using $bp->displayed_user->domain

buddypress-trac noreply at wordpress.org
Sat Mar 22 09:19:32 UTC 2025


#9276: error when using $bp->displayed_user->domain
---------------------------+-----------------------------
 Reporter:  locker17       |      Owner:  imath
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Documentation  |    Version:  14.3.2
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 Using $bp->loggedin_user->domain like described here:
 <a href="https://codex.buddypress.org/developer/the-bp-
 global/">https://codex.buddypress.org/developer/the-bp-global/</a>
 throws an error on my page:
 Undefined property: stdClass::$domain

 So I am using the function bp_displayed_user_domain() instead which works.
 I am running PHP 8.2 if that matters.

 If $bp->displayed_user->domain is deprecated or whatever can someone
 please update the docs?
 Thanks!

 Reason: Tried to use $bp->displayed_user->domain when testing this script
 here from shanep to add a new tab:
 [https://gist.github.com/shanebp/5d3d2f298727a0a036e5]

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9276>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list