Home › Forums › Front End PM PRO › Latest Update Breaks Groups
- This topic has 6 replies, 3 voices, and was last updated 6 years, 5 months ago by Kash.
- AuthorPosts
- July 12, 2019 at 3:52 am #26822KashParticipant
Hi,
I had 2 groups to choose from, but after the latest update today one of the groups is missing. I went to the Admin to re-add the group and found the whole group section blank (see attached).
Thanks.
Attachments:You must be logged in to view attached files.July 12, 2019 at 10:28 am #26828Shamim HasanKeymasterA new menu is added for groups. Please go to Dashboard > Front End PM PRO > All Groups
(See screenshot)Note: You will have to be admin (edit page capability) to access that menu
Attachments:You must be logged in to view attached files.July 12, 2019 at 10:10 pm #26866KashParticipantThank you, I didn’t notice that.
But I’m still having an issue where I have 2 groups defined in the backend, however only 1 group is showing up on the front end (see screenshots attached).
This issue only started with the latest update.
Thanks.
Attachments:You must be logged in to view attached files.July 12, 2019 at 11:38 pm #26873Shamim HasanKeymasterPlease check if you are member to both groups.
July 13, 2019 at 12:25 am #26875KashParticipantI’m not a member of both groups, however I’ve been working around that limitation by using this code in my functions.php. It was working until the latest update:
// Allow front end messages pro users to send messages to group they are not in
add_filter( ‘fep_get_user_groups’, function( $user_groups, $user_id ){
$groups = fep_get_option(‘gm_groups’, array());
if( $groups && is_array( $groups) ){
foreach ( $groups as $group ) {
$user_groups[ $group[‘slug’] ] = $group[‘name’];
}
}
return $user_groups;
}, 10, 2);July 13, 2019 at 4:35 pm #26896Shamim HasanKeymasterFor version 11.1.1+ please add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_groups_to_send_message', function( $groups ){ return Fep_Group_Message::init()->get_all_groups(); });July 13, 2019 at 10:51 pm #26913KashParticipantThank you!
- 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.