That worked! a misplaced close on the if statement. Rookie mistake. Thank you very much. Another question, is there a way to filter the list of recipient roles to ‘subscribers’ only when creating a new announcement?
Thanks Shamim! Yes that’s what I was hoping to be the case but my issue is that my function above makes the whole menu disappear, rather than just the “New Announcement” menu button. Can you see anything wrong with my function that might cause this?
Thanks for your reply Shamim! Actually I’m looking to allow non-admin users with manage_options caps to see the “New Announcement” button and be able to create new announcements. All other roles (except) admin need to be prevented from doing so. Can you recommend a way to do this?