this works fine for a specific user login:
global $user_login;
get_currentuserinfo();
if ($user_login !== "admin") { // change admin to the username that gets the updates
add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
}
and this for a specific user id:
global $user_ID;
get_currentuserinfo();
if ($user_ID !== 1) { // change 1 to the id number that gets the updates
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:
- Does WordPress have a built in message function for presenting notifications to users?
- Show Admin Message on Redirect
- How to send notifications without a plugin when a post is updated in WordPress?
- 3 different mail notifications
- Email has been changed notifications
- How best to display notifications on the front-end using caught exceptions as an example
- What are the pros and cons to a WordPress run newsletter v. third party newsletter? [closed]
- REST alert when new WordPress post is published or updated
- Can I show a custom message to a specific user?
- send new post notification to an email address stored in a custom field value
- Removing sensitive information from comment notifications – notify_post_author
- How can I format email notification after registration?
- Conditional wp_mail statement on post
- Notification when certain posts are published
- How to display Real-Time notifications (via Icons) in WordPress
- WordPress, Mailchimp, Campaigns – should separate campaigns be used for something like notifying users of drip content?
- Notification on getting an email from an user
- How to prevent comment moderation flood?
- Looking for plugins that notify users of comment replies [closed]
- How to hide popping up Google Play’s unlocked achievement programatically?
- Alert Email when any Post or Page is Changed
- Enable update notification, disable updates
- Add update notification bubble to admin menu item?
- How to disable the “Your site has updated to WordPress x.y.z” admin email?
- Disable WP core updates but send email notification
- New post notification in wp_nav_menu
- Customizing the Subject Field in WordPress’ Notification Emails?
- Showing WP_Error message with admin_notice action hook
- How to count number of functions attached to an action hook?
- Disabling pingback and trackback notifications
- Admin to user notices – best practices?
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- Don’t send notification if author comments his own post plugin help?
- email wordpress users using BCC
- WordPress comments email notification for authors
- New post email alert
- How to get a nofication when post submitted
- Send Notifications to All Admins
- PGP-Encrypt system-generated notifications
- Email notification after registration in WordPress
- Why is WordPress asking me to update my new (virtually blank) theme?
- “before delete post” action fire when the post is updated?
- Menu Item Location
- Displaying a message upon user registration
- WordPress independent plugin upgrade notification system [duplicate]
- Notice bar at frontpage for multisite
- Display alert on successful user Sign Up
- Notify post author for a new comment on his post?
- User registration email and let user choose pasword
- Is there a way to notify specific users when new posts are published to specific pages?
- Reply By Email to comment notifications
- How to notify specific users when i’m posting/modifying a new post
- PAGE Specific Email Notifications
- New Post Notifications for Users – BUDDYPRESS
- comment_notification_text filter for custom post type
- Delete “Post Published. View Post” for custom post type
- Send a conditional email notification when a custom field value changes in Post Type
- Save value from Javascript object to WP user
- Disable New User Registration Email sent to WordPress admin email on 4.9.5
- How do I troubleshoot registration/password email errors?
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- Adding Notification Bubble on Admin Top Bar
- Send email messages after comment was submitted
- New register email notification sending some fields blank on site admin emai id
- Post Status Frontend Announcement
- how to display a string in admin_notices hook from a class plugin
- arguments for comment_notification_text filter
- Looking for a theme to show unread/updated posts since last visit or like that
- How to split out BuddyPress notifications drop down items to their own top level? [closed]
- comment_notification_text filter not working
- How to send automatic response after form submission without plugin
- Need to suspend RSS feed while repairing missing old post
- How can admins to be notified of changes when users change their WP profiles?
- New user notification issue
- E-Mail Notification on post edit
- Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails
- tag based subscription
- After form submission want to show success message in the form page
- SMTP not working for Comments Email Notifications
- How to check if a new private custom post type is created?
- Custom User Notice Upon Login
- Mobile Notification on a blog post
- Notify admin (by email) if post added with specific tag
- Exclude Current user email and send notification
- Not receiving any e-mails after new comment
- How to disable the “Your site has updated to WordPress x.y.z” admin email?
- How can I see whether a commenter has subscribed to be notified of replies / other comments to a post
- BCC email to subscribers
- Possible to hide the search engine indexing disabled prompt/error message?
- Annoying notification when trying to create a new page
- Custom notification for contributors when posts are scheduled
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- In my comment form, how do I move the “notify me of follow-up comments” box above the “post comment” button?
- Notifications on WordPress Website [closed]
- Look for one plugin which could send notification to any email when post publish
- How to send push notification in android using php? [closed]
- Admin notice on wp_insert_post
- How do I add the “orange counter” next to a Custom Post Type?
- Customize the new comment notifications sent to the post author after the comment is approved