Just a quick reminder to my future self: if you ever will find yourself stuck again, spending countless hours trying to understand why Carbon Fields doesn’t work inside your brand new WordPress plugin you’re developing locally using Local environment, Composer AND a symlink to a separate plugin folder somewhere on you computer.


For some reason, Local + Carbon Fields + Composer + Symlink don’t really get along very well together so you’re probably better off just having a regular gitified plugin folder inside Local container. And no fancy symlinks, please.

Btw, problem persists on all environments, be it Ubuntu or macOS.


For all other setups symlinks can be really useful so I’ll leave this snippet here, showing how to create one. It allows you to work on anything in a separate folder and test it easily on a local environment from a different place.

ln -s /Users/pavel/Documents/Plugins/my-plugin/ /Users/pavel/Local\ Sites/website.local/app/public/wp-content/plugins/my-plugin

Leave a comment

Write something about it