Team Yoast, while all working from home for the first time in our history, is working on one of the biggest improvements to Yoast SEO yet. This release, Yoast SEO 14.0, internally has the codename "Indexables". This release, while fully backwards compatible, will change some of our known integration API's. If you integrate with Yoast …Read: "Upcoming release: Yoast SEO 14.0 - Indexables"
Recent PHP articles
In Yoast SEO 14.0, every meta tag that Yoast SEO outputs is output through a so called Presenter. In fact, all of them are extensions of the Abstract_Indexable_Presenter class, and you can easily add your own. Just make your own class that extends Abstract_Indexable_Presenter, and filter it in through the filter wpseo_frontend_presenters. Let me show …Read: "Yoast SEO 14.0: adding metadata"
In Yoast SEO 14.0 we've introduced a formal way of integrating Yoast SEO into your code. We've added what's called a surface called YoastSEO(). This surface gives easy access to lots of the features Yoast SEO has to offer. In this post I'll show you some of the different helpers that are now easily accessible …Read: "Yoast SEO 14.0: using Yoast SEO surfaces"
Due to the Yoast SEO indexable project using an entirely new namespaced Dependency Injection architecture, we've had to change some of our Schema API. All your existing integrations still work as we've made them backwards compatible, but we ask that you please update to the new code when you can. In this post I will …Read: "Yoast SEO 14.0: changing the Yoast Schema API"
Composer is a dependency management tool. It allows you to add libraries as a dependency, so you don’t have to solve every problem yourself. You can make use of the solutions provided by others to save yourself some time and likely account for edge-cases you hadn’t even thought of. Why would you use dependencies? For …Read: "Composer dependencies in WordPress plugins"
Unit-testing your WordPress plugin can be challenging. Luckily there are tools out there making it a lot easier. In this post, we will be covering the following tools: PHPUnit, Mockery and BrainMonkey. Together these tools can be a powerful tool to ensure the technical quality of your plugin. Before we started using these tools at …Read: "Unit-testing with mocks in WordPress"
Plugins and themes from the WordPress.org repository install as stand-alone packages; they need to contain all the code, files, and dependencies needed to function correctly. Because there is no centralized system with an overview of all the dependencies used in different WordPress plugins and themes, they all need to implement their own safety net. Dependencies …Read: "Safely using PHP dependencies in the WordPress ecosystem"
Back in 2001 I did my first internship at a web company in Groningen (in the north of the Netherlands). This is where I discovered I have a passion for web development. Since then I’ve mostly worked at companies with a very small technical team (1-3 people) which brought out my constructive and problem solving …Read: "Reinventing my developer happiness"
A nice way to optimize your test flow is by having PhpStorm run your unit tests for you. It can be quite some work to set this up for WordPress plugins, since they depend so heavily on WordPress. In this post, I'll go over all the steps you'll have to take to do this.Read: "Unit testing WordPress plugins with PHPUnit in PhpStorm"