Underpin’s theme loader implements a middleware pattern. I’m coming to realize just how badly WordPress scripts benefit from this pattern.

I have a script that does a lot of prep work in my nearly headless theme, and it REALLY cleans it up.

github.com/underpin-WP/sc…

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *