Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    add in your theme’s functions.php

    function fep_exclude_users( $args )
    	{
    		$args['exclude'] = array( 1, 2, 3); //change with user id to exclude those users
    		return $args;
    	}
    add_filter('fep_directory_arguments', 'fep_exclude_users');

    Change 1,2,3 with user id to exclude those users

    Thread Starter webzilla_stu

    (@webzilla_stu)

    Shamim
    Thanks for the quick response.. this is just perfect, this is so very much appreciated, this plugin rocks and your support is second to none.
    Thanks again
    SM

    Hi!

    I also need to hide my users from seeing the directory. The code above seems to hide certain users (by id). I would like to hide the directory from certain roles. How can I do that?

    Thank you and thank you for taking the time to make this plugin

    Plugin Author Shamim Hasan

    (@shamim51)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding Users from DIRECTORY’ is closed to new replies.