Home › Forums › Front End PM PRO › Restrict which rolls show up on front end for announcement. › Reply To: Restrict which rolls show up on front end for announcement.
May 26, 2019 at 2:44 am
#25058
ronnie kanka
Participant
sorry I’m a php rookie.
How would I unset multiple roles? can you show me an example? I tried
“add_filter( ‘fep_filter_to_roles_to_create_announcement’, function( $roles ){
unset( $roles[‘administrator’, ‘student’, ‘faculty’] ); //set here which role you do not want to show
return $roles;
});”
but no luck
thanks so much