Plugin removes itself if mistake made during edit

  1. Put this line into wp-config.php:

    define('DISALLOW_FILE_EDIT', true);

  2. Now that plugin and theme editors are gone, you’re forced to do it the proper way, managing files with FTP or Git

  3. Install nice text editor like Visual studio code or Sublime text 3 with all them fancy highlighting and autocompletion and stuff 🙂