Disable plugin or theme installation option in wordpress

Disabling plugin or theme installation option in WordPress. Is that possible? Yes! That’s possible too with WordPress. 😉

You just have to add the following line to your wp_config.php file.

define( 'DISALLOW_FILE_MODS', true );

That’s it! This will disable plugin installation form within WordPress,  ha ha isn’t that awesome! After adding this code you just have to use FTP to upload or update your themes and plugins. From my point of view its really small price to play for not having your precious WordPress site hacked.

Thanks to Delwar Jahan for his comment. Without your question I would never had a chance to let people know about this feature of WordPress.

This is a shout to all my readers! Please ask questions. That way we both will learn more about the awesomeness of WordPress and the world. Cheers 😉

Leave a Reply