Automating WordPress development

If you spend any time developing themes, you will no doubt know that it is a manual process, which takes time. Themes often require careful tweaking and retesting; it can get particularly tedious when recompiling Less files!

Fortunately, there are a number of solutions available to relieve some of the tedium experienced when developing WordPress themes; the most popular option is to use a package we first met back in Chapter 2, Building a Less Development Toolkit. It's time to revisit using Grunt!


For the more experienced, it is worth looking online for lessphp, which is a port of Less to PHP. There is code available that allows direct compilation within WordPress, in much the same way as we will cover in this ...

Get Learning Less.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.