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

Question

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?

0
Evaldash 11 months 2021-12-24T15:58:25-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse