Send Message to Group (Not Member of That Group)


Home Forums Front End PM PRO Send Message to Group (Not Member of That Group)

This topic is: Not Resolved

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19128
    M Rizky Darmawan
    Participant

    Hello, is there any way to make user send message to a group even they are not a member of that group?

    Example:
    Sarah is not a member of group “Flower” but he want to send message to them.

    I really need this ability to make my website functional, can you help me? Thank you for your advance 🙂

    #19145
    shamim
    Keymaster

    Yes, but it needs some code.
    I am outside. I will be back after 1 week. Then i will give you some code to achieve this functionality.

    #19329
    shamim
    Keymaster

    add following code in your theme’s (child theme’s if using) functions.php

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