Title: To: &#039;only specific role&#039;
Last modified: August 24, 2016

---

# To: 'only specific role'

 *  Resolved [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/)
 * hi, is it possible to show the name of the recipient to show only users from 
   a specific role?
 * [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6056983)
 * Make sure you have latest version of Front End PM (if not work download again
   from wordpress).
 * add in your theme’s function.php
 *     ```
       function fep_add_autosuggestion_argument_filter( $args )
       	{
       		$args['role']	= 'Subscriber'; //add here which role you want
   
       		return $args;
       	}
   
       add_filter('fep_autosuggestion_arguments','fep_add_autosuggestion_argument_filter');
       ```
   
 * Change ‘Subscriber’ to whatever role you want.
 *  Thread Starter [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6056987)
 * I wil test this tomorrow. Thanks a lot. You are the best!
 *  Thread Starter [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6056990)
 * Hum… It’s returning 0, no matter which role i use.
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6056992)
 * Did you download again this plugin from wordpress? If not download now and check
   again. Also at first try with ‘Subscriber’ or ‘Administrator’
 *  Thread Starter [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057056)
 * you mean if i have version 3.2? yes, i have. I tested with all roles available..
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057076)
 * not version. I added a new filter `fep_autosuggestion_arguments` after your question.
   then uploaded. But did not change version number.So Please download this plugin
   again then try. It is working perfectly. I first tested then uploaded.
 *  Thread Starter [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057134)
 * Now it worked!
 * thanks.
 *  [amitesfera](https://wordpress.org/support/users/amitesfera/)
 * (@amitesfera)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057140)
 * Hi,
    If i want to add website admin into the to without auto suggestion or in
   the hidden field without having To here.
 *  Thread Starter [Cirinu](https://wordpress.org/support/users/cirinu/)
 * (@cirinu)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057167)
 * amitesfera. this is another question. open a new topic.
 *  [dave_garlock](https://wordpress.org/support/users/dave_garlock/)
 * (@dave_garlock)
 * [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057240)
 * Another question – I implemented the fix above, and it worked great. However,
   I’d like to show multiple roles (my users, and admin). I’m a PHP novice, so haven’t
   been able to figure it out on my own – how could I use the filter to show more
   than one role? Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘To: 'only specific role'’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [dave_garlock](https://wordpress.org/support/users/dave_garlock/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/to-only-specific-role/#post-6057240)
 * Status: resolved