Reply To: Restrict which rolls show up on front end for announcement.


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.

#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