Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get current message and recipient id in BuddyPress


  • abhimanyubind
    Participant

    @abhimanyubind

    Hello, I want to fetch the current message which is sent by the user and recipient id to whom the message is sent. How can I get this data ?

    Any help would be appreciated 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Take a look at this file:
    buddypress\bp-messages\bp-messages-actions.php
    In function messages_new_message there is this hook:
    do_action_ref_array( 'messages_message_sent', array( &$message ) );


    abhimanyubind
    Participant

    @abhimanyubind

    How can I use this function to get the recipient id and the current message ? I tried different variations to obtain the result but I was unsuccessful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get current message and recipient id in BuddyPress’ is closed to new replies.
Skip to toolbar