Reply To: User Exclusion


Home Forums Front End PM PRO User Exclusion Reply To: User Exclusion

#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