security – How can I disable new plugin and theme install, but allow updates?


I’ve already tried the DISALLOW_FILE_MODS constant, but it disables plugin updates as well, which is not what I need. I need automatic theme and plugin update checking, and the ability to install the found updates to work in the WordPress dashboard, but disallow new plugin and theme installs. How could I achieve this?

Evaldash 2 years 2021-12-24T15:58:25-05:00 0 Answers 0 views 0

Leave an answer