Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Plug-ins: allow updates, disallow add new

Discussion in 'Misc WordPress Requests' started by bcworkz, Mar 9, 2018.

  1. bcworkz


    Reply To: Plug-ins: allow updates, disallow add new, by bcworkz

    That’s fine if you want to go that way. One small correction in your concept. It will not be just a matter of commenting out when dealing with capabilities. You’ll need code explicitly adding it back to the role. You see, capabilities are written to the DB and persist until opposing code changes it.

    You could (and should) comment out the code as soon as it is run once and the change will persist. This is why you needn’t worry about a role management plugin overhead. Once you’ve set what you want, you can deactivate it. AFAIK there are no configuration or setup procedures for such plugins. Naturally there’s a small learning curve, like less than 5 minutes of poking around. The advantage of such a plugin is sometimes you need to try different capabilities until you get the correct behavior, they are not always as intuitive as they seem. The plugin UI makes this easy. But if you know for sure what you need, custom code is just as effective. I’m pretty sure we’ve got this one right

    Reply To: Plug-ins: allow updates, disallow add new

Share This Page

Monarch Social Sharing Plugin