Add this to your functions.php.
if ( !current_user_can( 'edit_users' ) ) { //Change the edit_user" to whatever capability you need to retain the notifications
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}
Or if you want to show the notification to a specific user only you may try something like this:
global $user_login;
get_currentuserinfo();
if ($user_login !== "admin") { // change admin to the username that retains the notifications
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}
Related Posts:
- Disable Media Uploads to non Admin Users
- How to let authors revise other authors drafts, but keep them from publishing?
- Pagination Error on Admin (You do not have sufficient permissions)
- How do I fix “You are not allowed to edit this item.” for Admins on existing posts?
- Page only shows when user is logged in (even with visibility set to public)
- WordPress stripping html and script tags from some admin users on save
- Don’t attribute content to admin users
- Apply permissions per post
- Admin cannot publish
- Unable to Access WP Admin or Login buttons after Migration
- remove menus for a specific role?
- How to disable Media Library uploads for non-Admin users?
- Admin user lacks admin permissions after hack and can’t reinstate
- solution to prevent specific admins from altering site contents
- Wp-Admin FTPS Connection Error unlike Filezilla
- Error “Sorry, you are not allowed to access this page”
- Admin Access for specific page(s)
- My Account Lost Administrator permission
- Admin Ajax is returning 0
- Add a Separator to the Admin Menu?
- Adding a custom admin page
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Custom admin email for new user registration
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- localhost/wp-admin on my local redirects to production site’s /wp-admin
- A similar hook as wp_head for the admin area
- How do I set up a webhook?
- Hide allow trackbacks/pingbacks
- How to retain HTML5 Attributes on Markup
- Hide Admin menus per role in WordPress
- wordpress upload http error?
- How to find out if an wp-admin action edited a file?
- Text snippets shared across posts
- Add Admin User via SQL
- How to remove Gravatar from Username column
- I keep getting logged out in Firefox
- get_template_part in admin
- Why Jetpack is missing the “Feedbacks” menu item? [closed]
- Getting the different post statuses + count like in edit.php, in a custom submenu page
- What is the optimal way to filter out subpages from admin?
- Create a Meta Box in the Admin User Screen?
- Send email to Admin when user/member updates specific user/member data
- Help with shortcode in admin-ajax [closed]
- Protect custom php file with login
- Remove the whole menu in the admin
- Limit Words in Category / Term Description – Admin Panel
- Change top level menu item to point to custom submenu item
- Change admin logout URL
- Link to post author but exclude administrator (on single.php)
- Default admin color scheme as “blue”
- Can user #1 (the initial user) be deleted without ill effect?
- wp-admin post.php JavaScript Links Not Working
- Remove duplicate product link from WooCommerce Page Row Actions
- How to set default editor tab
- Admin toolbar shows up when not logged in
- Make the Status, Visibility, or Date fields opened by default in the Publish box
- No Permission to add new Page, Post or CPT with Admin role
- WordPress Admin Login Redirect Problem
- Attachment display settings only allows “full-size”
- Admin option sidebar count
- 500 internal server error on wp-admin only
- Admin Top Bar Not Showing On Front End
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Only Admin can Edit, Delete or Update
- How to verify nonces in bulk?
- Getting admin notices to appear after page refresh
- Hide post title input for all roles except admin
- How to activate the dashboard
- avoiding the display of certain categories to certain user roles at content entry time
- WordPress Hacked 5.5 admin-ajax.php [closed]
- Excerpt showing under title in admin columns
- how to remove +new from wp admin area
- html id is removed for non admin user?
- Given multiple admin accounts, how can I make it so that only admin with X username can edit posts
- How to show a custom notification to a specific user?
- Visual Editor only working for the admin user
- How should I change the username of or delete the admin user?
- Extending the user profile [closed]
- Show private pages in public when you logged in as admin?
- Any known plugins for master admin login to edit all on front end?
- How to exclude some post from admin edit screen
- How to show WordPress admin dashboard forms on front-end?
- Allow custom REST route to return before doing long operation
- WordPress – add help text under category list(right side) in post edit page
- Cannot access wp-admin after installing SSL – user capabilities not being set
- Where to store publicly-accessible files
- Show only content in page after action click in WordPress admin
- Admins loggin in to our wordpress site default to the admin page
- Display Graphs in Admin Pages
- Admin page and admin menu. Permissions plugin
- Downloading file from wp-admin folder
- Dropdown list of available posts for post editing
- Unsure how to add simple checkboxes that write to a small table to admin
- Custom styles and scripts for specific admin screen
- TinyMCE buttons broken
- Is it possible to get rid of admin new updates notifications?
- Cant enter admin page with SSL
- Add custom css class to wp-list-table row for custom post type
- Custom column with post ID not working in CPT
- Modify ‘the_content’ appearance in the admin area