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

    (@shamim51)

    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

    (@cirinu)

    I wil test this tomorrow. Thanks a lot. You are the best!

    Thread Starter Cirinu

    (@cirinu)

    Hum… It’s returning 0, no matter which role i use.

    Plugin Author Shamim Hasan

    (@shamim51)

    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

    (@cirinu)

    you mean if i have version 3.2? yes, i have. I tested with all roles available..

    Plugin Author Shamim Hasan

    (@shamim51)

    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

    (@cirinu)

    Now it worked!

    thanks.

    amitesfera

    (@amitesfera)

    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

    (@cirinu)

    amitesfera. this is another question. open a new topic.

    dave_garlock

    (@dave_garlock)

    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.