In this first part of the Intro to WordPress Plugin Development series, we’ll be taking a look at some best practices for coding your plugin. Specifically, we will take a look at these areas: How to set up the plugin header Formatting your code Use of meaningful names in files and code File organization How […]
Tutorial Series
Intro to WordPress Plugin Development: Separate Into Multiple Files
We’re nearing the end of the Intro to WordPress Plugin Development series. While we’ve gotten into some more advanced topics in the series, I want to circle back to one of the original concepts. In the best practices section of this series, we talked making your plugin readable to others. This helps if anyone ever […]
Intro to WordPress Plugin Development: Object Oriented Programming
So far we’ve been working with procedural programming in the Intro to WordPress Plugin Development series. Now we’ll take a look at how we can use object-oriented programming (OOP). This tutorial is not going to go into all of the details behind OOP. Instead, it will go over the concepts and differences between OOP and […]
Intro to WordPress Plugin Development: Sanitize and Validate Data
Data sanitization and validation are two very important topics to be aware of when building a plugin. Your plugin will be writing, reading, and editing data in the database. Whenever you interact with the database, you open the possibility of bad things happening. What is data validation? Data validation is basically a way to make […]
Intro to WordPress Plugin Development: Adding a Settings Page
In the previous part of the Intro to WordPress Plugin Development series, we talked about how to add menu links to the dashboard. We briefly touched on adding content to the page that the link points to, but that content isn’t particularly useful. What we need is a way for users to interact with our […]