If you’ve ever dealt with clients, you’ve probably also set up development sites to demonstrate plugins and/or themes.

One danger before receiving final payment is the person ripping off your code through the plugin/theme editor. While this is tedious to do, it is still a real and scary possibility.

To deactivate the plugin/theme editor, just add the following line into your dev site’s wp-config file:

define( 'DISALLOW_FILE_EDIT' , true );

That’s it. Simple and sweet. Hat tip to Brad Williams for the suggestion (here’s also the Trac discussion).

Get the most detailed book for Ajax and WordPress for FREE