Latest Update Breaks Groups


Home Forums Front End PM PRO Latest Update Breaks Groups

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26822
    Kash
    Participant

    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.
    #26828
    shamim
    Keymaster

    A 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.
    #26866
    Kash
    Participant

    Thank 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.
    #26873
    shamim
    Keymaster

    Please check if you are member to both groups.

    #26875
    Kash
    Participant

    I’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);

    #26896
    shamim
    Keymaster

    For 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();
    });
    
    #26913
    Kash
    Participant

    Thank you!

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