Category: Quick Tips

Enqueueing using the from @wordpress/scripts generated .deps.json dependencies [UPDATED for .asset.php]

When using the @wordpress/scripts package, it will automatically create a .deps.json file for every JavaScript entrypoint. This file contains a list of all the WordPress JavaScript dependencies used in it and in all the file it imports. Therefore it really simplifies keeping track all of the dependencies of a script. But the question that quickly […]

Continue reading

What are higher order functions?

When working on some filtering and sorting functionality, there is something wished I would have learned much earlier in my career. Before that point I didn’t really understand what higher order functions were or why it would be useful to return a function from another function. So I hope that this might help someone find […]

Continue reading