In this post we are trying to help you secure your website from unauthorized plugins and theme installations.
The main question why would you want admin users to not add new theme and plugins. You need to do this when you have several admin users and you don’t want your website go down for newly installed theme or plugin.
Note: This wouldn’t only disable the installation of theme and plugin but also would stop auto updates from admin panel.
So to avoid any problem after update sometime websites goes down cause of various reasons. As we have seen a number of people getting There has been a critical error on your website. This mostly happens cause of an update in theme or plugin. When your website is receiving good number of visitors, you just don’t want everyone to hit update button or add new button for plugins and themes.
Simply disable the file modifications and this will stop WordPress theme installations and WordPress plugins installations. Along updates of WordPress themes and plugins in fact any type of file modifications through admin panel of WordPress.
Edit your wp-config.php through FTP or via cPanel file manager and add the following code.
You can post it just before.
/* That's all, stop editing! Happy publishing. */
Every time you want someone to perform updates then you can disable this constant and that’s it.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?