SOLUTION:
We take this code and paste it to functions.php :
function createit_hide_upd_for_other_adm_users() {
$current_user = wp_get_current_user();
if ( 777 != $current_user->ID ) { //change the user ID
add_filter( 'pre_site_transient_update_core', 'disable_updates' );
add_filter( 'pre_site_transient_update_plugins', 'disable_updates' );
add_filter( 'pre_site_transient_update_themes', 'disable_updates' );
} else {
}
}
add_action( 'init', 'createit_hide_upd_for_other_adm_users' );
You just need to find the correct WordPress user ID and put it in place of 777, thats it!
Related Posts:
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- Site Crashes When Updating to WordPress (Version 3.6)
- Cannot Update wp DB – Get 500 Error
- How to check if a user is in a specific role?
- How to restrict dashboard access to Admins only?
- Admin Page Redirect
- Check if user is admin by user ID
- Remove “Time to upgrade” message from dashboard
- How to display the user that published a pending post?
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- wp-admin pages return ERR_EMPTY_RESPONSE
- Add a button to users.php
- create users to site with specific language
- When attempting to update a self-hosted WordPress site, I’m seeing “ASN1 unknown message digest algorithm”
- Display sortable User meta column in admin panel user’s page
- How to display multiple custom columns in the wp-admin users.php?
- Hooking into register_admin_color_schemes
- Removing user fields [duplicate]
- How do I allow users to follow a post and then allow admins to email all users who have followed that post?
- wp-admin edit user url wont show up correct url [closed]
- Users Unable to Access Dashboard/Posts/Pages
- Stop loading “collaborators” users on add new post or page?
- How can I allow core, plugin, theme update checks only for selected admins?
- How to stop – Database Update Required – from happening again?
- Distinguish profile user and admin user IDs / get ID of user being edited
- Uncheck the box “Send User Notification” by default on new-user.php
- Detecting all admins that are logged in
- Customise WordPress Update Notice in wp-admin backend area
- Stopping user deletion from running on error
- Filter dropdown in users.php “delete user” bulk edit screen
- Add count for new registered user in Users tab
- Users disappeared from wp-admin
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- An update has caused my client’s site to be non-existent after new update of WordPress [closed]
- WP admin user search doesn’t return all users
- Hide username discovery
- How to get Role Subscribe Users on Admin Menu only in Pages in WordPress
- Can I hook into wp_update_core outside of the admin?
- I accidentally deleted an admin user and all their content is now gone from the site. [closed]
- Restrict submitters from wp-admin [duplicate]
- can’t access backend while frontend works perfect
- Nickname field isn’t appearing in Admin
- Is there a filter to edit html of user-edit.php
- Create new user from phpMyAdmin
- wp_get_update_data() function running on every admin request
- How do I make it so that the all users page is not a white screen?
- define two login page url
- Newly created user role not displaying on users screen
- How to check if a user is in a specific role?
- Slow WP loading due to persistent version check, how to disable?
- On Users (user.php) in wp-admin disable/hide “Bulk Actions” and “Change Role To”
- Updated to wordpress 5.5.1 doesn’t work
- Login issue with subdomain installs
- Hook into form handle from admin users table
- restrict admin panel sections to users
- CSRF attack to create USER
- How to keep the plugin submenu open on viewing a custom version of users.php?
- Cannot login in WordPress even after changing hash password in phpmyadmin
- WordPress User profile page fields missing
- Custom Admin Message from external source to multiple users
- Anyone Can Register
- Couple questions about .htaccess, login page, updates
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the “users search” input box
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- WordPress Users page missing user count next to different types of users
- Searching for a custom meta from user.php in the admin
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- Hook into WordPress update?
- How to add a custom metabox to the Menu Management admin screen?
- How to make ajax call in wordpress in right way?
- Is there any way to test if a function running only on plugin update is successfully running?
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- Failed to load resource admin-ajax.php
- Auto backup before automatic WordPress updates
- Custom WordPress Dashboard for Specific user role
- Why does WordPress 4.2.2 require FTP to update?
- Execute script only on certain admin pages
- Remove favorites action menu and screen options panel
- No access local wordpress website after PC formating
- How can I replace dashboard.css and dashboard.min.css (not add new css)
- ‘wp’ hook supposed to trigger when editing a post?
- always by default show welcome panel in the dashboard
- How to change home page only in WordPress
- User Roles: How to hide a plugin from showing in WP-Admin?
- Pages section (only) not loading after publishing large number of pages
- wp-admin 503 error
- Admin Page access
- Add HTML to custom post type edit page
- WP site after login keeps redirecting to looped url [closed]
- Locked out of site admin after change of URL
- Add admin page to the top of the admin panel
- Admin page changes the $_POST data
- str_replace in wp-admin
- Admin area is not loading properly
- Using meta_query in add_query_arg
- WordPress Localhost migration issue