Rasaki Onile-Ere
Forum Replies Created
- AuthorPosts
- Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipant
Hello,
I have resolved this. It appears that a user must be a ‘WordPress Administrator’ in order to be able to send announcements.
Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantThis reply has been marked as private.Rasaki Onile-EreParticipantHi,
Thanks for the prompt response.
Where do we locate the slug from?
Thanks,
Rasaki
Rasaki Onile-EreParticipantHi,
I think I have made an error; but I added the following code and I got the ‘white screen of death’.
Please help me amend it.
add_filter( 'fep_directory_arguments', function( $args ){
$role_users_to_hide = array( 'subscriber', 'author',Admin', Customer', Event Contributor', Employee', Contributor', HR Manager', Shop Manager', Accounting Manager', Editor'); //here add as many as you want
if ( isset( $args['role__not_in'] ) ) {
$args['role__not_in'] = array_merge( $args['role__not_in'], $role_users_to_hide );
} else {
$args['role__not_in'] = $role_users_to_hide;
}
return $args;
}, 99); - AuthorPosts