1

How to disable core and plugin updates talks about generally disabling everything.

I'd like to keep update checks going for a select few admin accounts only. What's the best method? You can't check for user name at wp-config.php phase, right?

EDIT I mean disabling the whole update check process, not only the notifications. With a production site where you might have 15 HTTP requests going out for an update check run, it will cause significant delays in admin for people who this operation is not at all relevant for.

3
  • 1
    +1 but I do not think you are asking the right question. You are probably more interested in the notifications not displaying, and/or some admins not being able to update Commented Jan 31, 2018 at 6:07
  • 1
    WordPress checks for updates for itself, it doesn't really make sense to say that update checks should be disabled per-user. Do you mean notifications, or the ability to update? Commented Jan 31, 2018 at 6:07
  • It does make sense to say "update checks should be enabled per-user". Admin page load speed is of great importance on our platform, since multiple people work on content and content configuration, but have no business updating anything. Update checks to a large number of plugins, when it triggers, significantly slows perceived admin page load speed. Plugin set is already linted and only business critical things are in action.
    – lkraav
    Commented Jan 31, 2018 at 14:24

1 Answer 1

4

I think you should better create a custom role for "administrators-non-administrators" without the update_core, update_plugins and update_themes capabilities.

2
  • I like this idea and am going to give it a shot. Members plugin should allow also assigning multiple roles to everybody relevant.
    – lkraav
    Commented Jan 31, 2018 at 14:24
  • it seems like these capabilities only control the visibility of menu items. Update checks do not check for these caps.
    – lkraav
    Commented Jan 31, 2018 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.