Academy
Latest articles from the academy
Introduction to Unit Testing in JavaScript with Jest
Writing unit tests is really not as difficult as it seems. Let’s see how to do it in JavaScript using Jest. Set up Before we begin, let’s prepare everything we need. Inside a new folder, we’ll initialize npm. In this case, I’m passing the -y flag so it doesn’t ask questions and assigns all default […]
Customize the WordPress Custom Post Type List Using extended-custom-post-types
Creating Post Types in WordPress is often a tedious process. On top of that, many times we have to rely on plugins or additional features within the admin panel to gain control over the columns or the way these post types are displayed. Extended Custom Post Types is a very popular package on GitHub that, […]
How to Use Composer with WordPress
Note. This post draws heavily from this excellent article and combines those concepts with other experiences we’ve had using Composer. What is Composer Composer is a dependency manager for PHP. In the same way that npm exists for JavaScript, RubyGems for Ruby, or pip for Python, these dependency managers are responsible for handling all the […]
3 Tips for Writing Clean, Readable, and Maintainable Code
When we are starting our careers, we believe we are going to spend all our time writing code. And while that is not false, it is also not 100% true. The reality is that in addition to writing, we are going to read. We are going to read a lot. We might even read more […]
Building a User-Friendly Menu in WordPress Without Relying on NavWalker
How many times have we hit our heads against the wall trying to edit a WordPress NavWalker? This class, based on the abstract Walker class, is impractical, and editing menus exactly the way you want is usually a complicated task. To avoid this, we are going to use a Composer package that allows much greater […]
Building a React App Using WordPress as a Headless CMS
We are increasingly used to seeing complex, dynamic, and reactive interfaces. CMS platforms like WordPress make building these types of interfaces a bit harder with the tools they provide by default. This led to the emergence of the Headless CMS concept. In other words, using only the CMS content management tools and consuming an API […]