Home › Forums › Front End PM PRO › User Exclusion › Reply To: User Exclusion
November 28, 2016 at 3:28 pm
#1449
Shamim Hasan
Keymaster
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