Disable messaging for specific user


Home Forums Front End PM PRO Disable messaging for specific user

This topic is: Not Resolved

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46008
    Craig Tucker
    Participant

    I know that users can access settings to disable sending of email notification. How can admin disable email notifications for a specific user?

    #46009
    Shamim Hasan
    Keymaster

    You want to disable send message as well or only the email notification?

    #46010
    Craig Tucker
    Participant

    I need to just disable sending the email notification, Thanks.

    #46014
    Shamim Hasan
    Keymaster

    You can use following code

    add_filter("fep_get_user_option", function( $value, $option, $default, $userid, $is_default ){
        if( $option == "allow_emails" &&  $userid === 123){
            return false;
        }
        return $value;
    }, 10, 5);
    

    You can change user id value to chat you want.

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