Home › Forums › Front End PM PRO › Combine Announcements & Messages in 1 Inbox
- This topic has 9 replies, 2 voices, and was last updated 6 years, 9 months ago by Shamim Hasan.
- AuthorPosts
- February 28, 2019 at 10:34 pm #22113Jon HarariParticipant
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,
JonMarch 5, 2019 at 5:58 pm #22213Shamim HasanKeymasterIt needs custom code to achieve this.
If you have PHP knowledge then i can direct you.March 6, 2019 at 3:11 am #22234Jon HarariParticipantYes, please provide me the information – thank you.
March 6, 2019 at 9:28 am #22237Shamim HasanKeymasterUse 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)
March 6, 2019 at 11:08 pm #22254Jon HarariParticipantHi 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.phpCan you please check and confirm us?
Looking forward to it.
March 7, 2019 at 8:43 pm #22270Shamim HasanKeymasterPlease 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://sp-test1.arogga.co/hire/
March 8, 2019 at 11:33 pm #22302Jon HarariParticipantHi Shamim,
We have done it in this way but it’s still not working. Can you please advise?
March 9, 2019 at 1:13 am #22310Shamim HasanKeymasterMessage 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.March 11, 2019 at 11:20 pm #22379Jon HarariParticipantOk thank you yes please provide me with the code.
March 12, 2019 at 6:20 pm #22431Shamim HasanKeymasterMessage and Announcement works in different way and they are queried also in different way. So currently it is not possible to combine them.
- AuthorPosts
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.