There are lots of ways to write variable names when programming. This is the list of ones I find myself using.
A non-breaking space has a unicode value of `U+00A0` (a normal space has a unicode value of `U+0020`). This is how I add this character.
These are the two ways I have used to rollback WordPress to an earlier version. Using either technique, you should make a backup copy of your files and your database first!
Recently I was talking to another developer about how to detect ‘WP_DEBUG’ being set on a WordPress installation. Here is the code I use.
While there are many ways to customization your command line prompt, one that can help readability is adding a blank line at the beginning of each prompt.
Lately I’ve been joining Zoom meetings with lots of new users and I find I keep sharing the same tips. The short version is: use Gallery View, Mute Yourself, and take advantage of Chat.
When creating a block for the WordPress block editor (a.k.a. Gutenberg), I find that most of the documentation is for class components. However, with React hooks we can use functional components. When you need to import ‘useState’ from React, you can do it as follows in a WordPress block.
An SQL injection vulnerability occurs when you use a variable in your SQL statement and someone uses the variable to add unexpected code. In this article, we’ll look at how this occurs and how to prevent it.