How do I disable dashboard update notifications for subscribers?

Question

For registered users to my blog, if they click on the dashboard, they get an alert suggesting that they tell the site administrator (me) that the new version of WordPress is available.

All I want is to hide dashboard alerts from the subscribers. Where can I find the code to change this?

I found a site here that suggests that I’m looking for the code:

add_action('admin_head','addDashboardAlert');

But I don’t know where to look for it.

UPDATE

I found some more relevant code to make the alerts conditional on user role, here:

if (!current_user_can('delete_posts')) {
0
bozdoz 8 months 2020-12-09T03:10:58-05:00 0 Answers 4 views 0

Leave an answer

Browse
Browse