Here are 7 examples of simple plugins you can write to get started with WordPress plugin development. Plugins in the WordPress repository should try to serve a single purpose. The “single purpose” concept is so the author can maintain the code more easily and so the end-user that doesn’t have […]
Category: WordPress
Any topic related to WordPress that could potentially be helpful to others. Specific applications for different WordPress features.
Why is my shortcode content showing before other content?

If you have created a shortcode but it’s showing up before the other content on your WordPress site, it might be because you used an “” instead of a “” in your callback function. add_shortcode() Incorrect: Correct:
Breaking vs Non-Breaking Plugin Changes
If you’re anything like me, when you open up old files, you like to clean them up while working in them. It only adds a small amount of time to your work and is the most convenient time to “get around” to cleaning things up. There are some things we […]
When is wpautop() going to grow up?

Every time I look at this function, I wonder when someone will rename the argument and the variables and . The Code Refactoring section in the Contributor Handbook suggests not to focus on style fixes, but I’m not sure if renaming variables is considered refactoring in terms of WordPress. “[Refactoring […]
Another Weird WordPress Mystery
I found this in a theme’s functions.php file: So this function only affects admins who cannot administrator…
Put Google’s Invisible reCAPTCHA on WordPress Login Without a Plugin

How to Integrate Google Invisible reCAPTCHA on WordPress Login If you’re looking to protect your WordPress site against brute force attacks, you can add features like a CAPTCHA or honeypot on your login page or enable 2-factor authentication. The code below is an example of how to add Google’s invisible […]
WordPress Mystery Story

One time, I was working in a WordPress site that had a category that contained seemingly random posts. The name was “New Members” and it wasn’t really descriptive of what was actually in it. I went to edit the category and realized I couldn’t delete it. Then, one day months […]