I was setting up a development environment for making WordPress plugins. I’m using a docker image to run WordPress, and I wanted the plugin files to be easily editable on the host machine. I’m lazy, and I don’t want any kind of “upload” or “copy into WordPress” step to be necessary. I want to “Save” in my editor and refresh the browser.
This was a bit more complicated to set up than I expected, here’s the steps I used: