Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 334 of 427)

Announcing The WordPress Plugin Boilerplate 2.0

Back in December 2011, I released an initial version of the WordPress Plugin Boilerplate. The purpose of the boilerplate was to provide an easy way to build WordPress plugins.

Specifically, the project featured:

  • File organization
  • Documented code
  • Implementation of the Plugin API
  • Action and Filter Reference

After the feedback that I received upon thisl release, I officially published version 1.0 to GitHub on November 29, 2012. After over a year of various contributions from others and other improvements, I’m proud to release the second version of the WordPress Plugin Boilerplate.

Continue reading

Making Remote Requests with wp_remote_get

When it comes to working with remote requests on the server side, there are usually two solutions that I end up seeing.

In fact, there are two solutions that I’ve typically ended up using:

Both of these functions generally work well; however, in our experience with Standard, we’ve had less than stellar experience especially when it comes to budget hosts.

This is where wp_remote_get comes into play. In short, wp_remote_get is a simple WordPress API function that’s used to retrieve data from a specified URL using the HTTP GET method.

Continue reading

WP DB Migrate Pro – A Discount and a Giveaway!

Brad Touesnard is the guy that’s behind several popular WordPress plugins one of which is the WP App Store, the other being WP DB Migrate Pro.

To say that he’s an accomplished and respected WordPress developer would be somewhat of an understatement.

He’s recently released the lastest version of WP DB Migrate Pro which I had the pleasure of participating in the beta test.

Generally speaking, this is the easiest plugin for migrating WordPress databases from local servers to remote servers and back again.

Features aside, Brad’s been kind enough to support a giveaway and a coupon code specifically for you guys.

Continue reading

How To Programmatically Populate a WordPress Template

The title of this post is somewhat misleading as I’m not actually sharing how to programmatically populate a WordPress template – instead, I’m walking through the process of populating a page that also has a page template applied to it.

Anyway, creating WordPress templates is easy business:

  • Create the template file in the theme directory
  • Give the template file the proper header comments
  • Fill out the template with the proper markup

Back in March, I shared a proof-of-concept plugin for including a template file in a plugin. If you browse through the comments, note that there’s a lot of discussion on how to do it, why one way is better than the others, and so on.

But as I’ve continued to work on a project in which I include templates in plugins, I’ve also been working on populating template-based pages with content from HTML files.

Here’s how I’ve been working to programmatically populate a WordPress template.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑