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.

  • 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 – Mark Kaplun Jan 31 '18 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? – Jacob Peattie Jan 31 '18 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 Jan 31 '18 at 14:24
4

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

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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