Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How to get user id of activity

@henrywright

Moderator

In the case of private messages, bp_get_the_thread_message_sender_id() is the function you should be using. The problem might be related to where you’re calling from (i.e. the member’s ID might not be accessible at the point where you are using the function).

For example, the bp_get_the_thread_message_sender_id() function must be used within a single message thread. Used anywhere else, it will return 0.

Skip to toolbar