Disable plugin / theme editing and upload in WordPress

define('DISALLOW_FILE_MODS', true);
define('DISALLOW_FILE_EDIT', true);

Sources
http://codex.wordpress.org/Hardening_WordPress#Disable_File_Editing
http://premium.wpmudev.org/blog/daily-tip-how-to-disable-plugin-and-theme-update-and-installation-on-wordpress/

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.