how to deactivate a theme in wordpress code example Example: wordpress disable theme editor // On wp-config.php define( 'DISALLOW_FILE_EDIT', true );