aleksandar.andjelkovic
Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- aleksandar.andjelkovicParticipant
Yes, it is always there.
I am sorry, but I am not allowed to share sensitive pieces of information.
If it is possible for you to tell me what to take attention to I would appreciate it!
aleksandar.andjelkovicParticipantWhen you import 1000 files it is being sent to those with same usernames automatically at the same time.
July 13, 2021 at 2:14 pm in reply to: Allow author user role to send announcement, but only to certain contacts #43371aleksandar.andjelkovicParticipantThis works for me:
add_filter( ‘fep_current_user_can’, function( $can, $cap, $id ){
if ( ‘add_announcement’ !== $cap ) {
return $can;
}
if ( array_intersect( wp_get_current_user()->roles, [ ‘administrator_02’, ‘urednik’, ‘administrator’ ] ) ) {
return true;
}
return false;
}, 10, 3);Have a nice day!
July 10, 2021 at 1:03 am in reply to: Remove certain roles from announcement or send to everyone #43351aleksandar.andjelkovicParticipantThank you, I really appreciate your help!
- AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)