User Exclusion

Home Forums Front End PM PRO User Exclusion

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1434
    Stefan Wolfschuetz

    Hi Shamin,
    in our community users have different roles with respect to the level of their permissions. One of these roles should have no access to the PM. But in the directory of fep ALL users are listed, so that the others are able to send a message also to those users who have no access. So they will get a message for the PM which they can not read answer because of the exclusion. Isnt it possible to exclude them generally from the directory, when they have no access permission?



    assuming your php version 5.3+ and wordpress version 4.4+

    Use following code in your theme’s functions.php

    add_filter( 'fep_directory_arguments', function( $args ){
    	$args['role__not_in'] = array( 'subscriber' );
    	return $args;

    Change ‘subscriber’ to any role you want. You can use multiple roles also

    Stefan Wolfschuetz

    GREAT 🙂


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.