Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: `bp_messages_star_set_action` utilizes `bp_displayed_user_id`, not correct?

@vapvarun

Participant

@thesun2012 Use bp_loggedin_user_id() to tie the action of starring or unstarring a message to the user logged in and performing the action. This function returns the ID of the user who is currently logged into the site. When a user is viewing their profile, both bp_displayed_user_id() and bp_loggedin_user_id() will return the same user ID, as the “displayed user” and the “logged-in user” are the same person in this scenario.

Skip to toolbar