Group Messaging


Home Forums Front End PM PRO Group Messaging

This topic is: Not Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41303
    sascha.muller
    Participant

    Hi,

    is it possible that online the ADMIN could send group messages and the user could only add himself to a specific group?
    Additional to that, is it possible only admin could send attachments?

    Best and thank you!
    S.

    #41306
    shamim
    Keymaster

    Add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_get_option', function( $value, $option ) {
    	if ( in_array( $option, ['can-send-to-group', 'allow_attachment'] ) ) {
    		if( fep_is_user_admin() ) {
    			return true;
    		} else {
    			return false;
    		}
    	}
    	return $value;
    }, 10, 2 );
    

    This will allow to send group message and attachments only by admins.

    May you explain “the user could only add himself to a specific group” a little more? Suppose you have 5 groups but you want your users can add themselves only specific 2 groups?

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