Combine Announcements & Messages in 1 Inbox


Home Forums Front End PM PRO Combine Announcements & Messages in 1 Inbox

This topic is: Not Resolved
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22113
    Jon Harari
    Participant

    Hi,

    How can I combine the announcements and messages into 1 inbox? Right now there is a separate inbox for messages “Message Box” and a different one for “Announcements” but I’d like to combine the two into one and have the notifications for messages count both the announcements and the messages.

    Please let me know!

    Thanks,
    Jon

    #22213
    Shamim Hasan
    Keymaster

    It needs custom code to achieve this.
    If you have PHP knowledge then i can direct you.

    #22234
    Jon Harari
    Participant

    Yes, please provide me the information – thank you.

    #22237
    Shamim Hasan
    Keymaster

    Use following filter hooks and unset $args['mgs_type'] and add $args['mgs_type_in'] = [ 'message', 'announcement' ]

    fep_message_count_query_args
    fep_message_query_args
    fep_filter_get_message_with_replies
    

    (Untested)

    #22254
    Jon Harari
    Participant

    Hi Shamim,

    We have updated the code in below file, but not able to locate the changes in the functionality.
    File: wp-content\plugins\front-end-pm-pro\includes\class-fep-messages.php

    Can you please check and confirm us?

    Looking forward to it.

    #22270
    Shamim Hasan
    Keymaster

    Please do not change plugin code as this will be lost when you update.
    You will need to use those 3 filter hooks to execute. To know more about hooks please see https://developer.wordpress.org/plugins/hooks/filters/

    If you need custom code help you can contact via https://www.shamimsplugins.com/hire/

    #22302
    Jon Harari
    Participant

    Hi Shamim,

    We have done it in this way but it’s still not working. Can you please advise?

    #22310
    Shamim Hasan
    Keymaster

    Message and Announcement works in different way and they are queried also in different way.
    So you will have to change so many filters to works it properly. Also some information for messages and announcement is different in database.
    It will not be small amount code which i can provide you.

    #22379
    Jon Harari
    Participant

    Ok thank you yes please provide me with the code.

    #22431
    Shamim Hasan
    Keymaster

    Message and Announcement works in different way and they are queried also in different way. So currently it is not possible to combine them.

Viewing 10 posts - 1 through 10 (of 10 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.