This post explains how to write WordPress code following modern PHP best practices, adhering to the official (or other established) coding standards.
Oftentimes, people are using WordPress filters in a wrong way. This post tries to educate people on how to correctly filter data.
In this post, I want to share a simple, yet effective best practice when it comes to (JavaScript) event listeners, and code reuse.
What are PHP language constructs, why do they exist, and what are they good for? And what’s the issue with parentheses? Well, here are some answers to that.