Possible to check if current user and post author have exchanged messages?


Home Forums Front End PM PRO Possible to check if current user and post author have exchanged messages?

This topic is: Not Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43534
    lia.spoerl
    Participant

    Hi,

    I’d like to hide some content and only show it if the both the current user and post author have communicated through messages and there are at least 1 message from each user.

    I know how to get the current user and post author, but I’m unsure how the rest could work?

    Could you offer some advice?

    Thanks

    #43553
    Shamim Hasan
    Keymaster

    You can use directly FEP_Message_Query class and pass participant_query array for both users. From the result you can determine if both have any messages between them.

    #43686
    lia.spoerl
    Participant

    Ok. Would this create a lot of wp admin ajax requests?

    #43695
    Shamim Hasan
    Keymaster

    No, You will need to set this in server where current query is.

Viewing 4 posts - 1 through 4 (of 4 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.