Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 130 of 219)

Articles, tips, and resources for WordPress-based development.

Want a Free Copy of WP Pusher?

Comments are closed as the winners have been selected and emails. Thanks to all who participated!

One of the more popular services that has to come to WordPress within the last year or so is the ability to integrate Git into your theme, plugin, and/or application development workflow.

And why shouldn’t it?

Services like GitHub and Bitbucket are responsible for the rise of Git, has introduced many people to source control (who I wonder if they’d ever use it), and then third-party services have made it possible for other people to connect their repository to another environment and deploy the changes.

It completely cuts out the middle-man of S/FTP and makes sure that we’re able to deploy true changesets of our work so that the code that’s sitting in our staging (or even production) areas are as updated as possible.

Continue reading

Why I Use Postmatic For WordPress

I’ve been using Postmatic to manage my blog comments for quite sometime now – since November, even. In fact, I’ve written two previous posts about the plugin:

  1. Making The Switch To Postmatic
  2. My Initial Thoughts on Using Postmatic

Since those posts, I’ve continued to run Postmatic – I’ve been through every single release of the beta, I’ve been through the release candidates, I’ve experienced the bugs that come with it (and I know some of my readers have as well – thanks for the tweets on those, by the way :), and I’ve been through their resolution.

To say that I’ve not experienced each hill and valley of the business as a customer since last November is an understatement. The fast turn around and direct communication with Jason and the rest of the development team couldn’t be better.

Other companies could take note, but that’s another post for another day.

Today, Postmatic has officially hit 1.0 and I couldn’t be more excited for the team.

Continue reading

Organizing Files For The WordPress Settings API

This is the final post in a series on An Object-Oriented Approach To The WordPress Settings API. Part 5.

Over the last few posts, I’ve covered topics ranging from creating interfaces to base classes and how to implement and inherit from both. One outstanding issue with the approach that this has covered thus far is that it didn’t take into account any type of file organization.

Anyone who has worked with any project of any size knows just how important having a clear organizational structure can be.

Later versions of PHP have feature of namespaces which can help us to further organize the code, but if you’re having to work with an old version, you don’t have that luxury. That’s no excuse for not properly organizing your files, though. You can still mimic what the namespace organization may look like.

So in this final post, I wanted to cover the approach that I normally take when organizing a plugin like the one we’ve been building.

Continue reading

Data in The WordPress Settings API

This is the fifth post in a series on An Object-Oriented Approach To The WordPress Settings API. Part 4.

In the last post in this series, I showed how to define a base class that represents some of the attributes and functionality our Dashboard class should have, and then I showed how to use inheritance in our Settings class so that we can take advantage of some of that functionality.

This post is going to include a little bit of redundant code, but the purpose of doing that is to show how the display, sanitize, and partial all fit together, and it’s done to help reinforce how the Settings API uses all of these features to read and write information to and from the database.

If you’re familiar with the Settings API, this post may not be as of much help; however, if you’re still new to it, then it may be worth reading.

Ultimately, the purpose of the post is to get us closer to have a fully working plugin that uses some basic object-oriented concepts as well as having a well-organized plugin that will help to contribute to maintainability.

Continue reading

Inheritance With The WordPress Settings API

This is the fourth post in a series on An Object-Oriented Approach To The WordPress Settings API. Part 3.

In the previous post, we began to implement the interface that we’re using to help guide our integration with the WordPress Settings API. The problem is, we’re not yet at a point where we can see the result of our work in the WordPress dashboard.

But at this point, we’re at a point where we can begin adding an interface for our plugin, but we can also define a class that represents the dashboard.

Additionally, we can have our Acme_Company_Name class not only implement the interface we’ve defined, but we can extend the the class that we’re going to create – that is, we can inherit from it so that we gain some of its properties and methods (if needed).

It sounds like a lot of work and though we’ll be adding several new files and adding a bit more code, we won’t actually be writing that much code.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑