Software Engineering in Web Development, Backend Services, and More

Author: Tom (Page 344 of 430)

What’s The Proper Way To Instantiate a WordPress Plugin?

When it comes to plugin development – be it either widgets or plugins – there are several different ways in which we can instantiate a WordPress plugin.

Unfortunately, you’re likely to get a different answer depending on who you ask, or what you read.

Case in point: According to the WordPress Codex, instantiating a WordPress widget is done like this:

add_action( 'widgets_init', create_function( '', 'register_widget( "foo_widget" );' ) );

But I know several people who are adamantly against using create_function.

Though I personally don’t have a problem with it, I’m always interested in hearing others’ approach to how they do it and why.

So in this post, I thought I’d lay out the various ways to instantiate a WordPress plugin, pros and cons of each, but also ask each of you what your favorite method is and why.

Continue reading

A Short Interview on WordPress JavaScript Coding Standards

Last week, I shared that I published the first iteration of the WordPress JavaScript coding standards.

Above all else, this was meant to be a first draft – a 1.0 – of the standards in order that we may all begin collaborating to refine the standards.

Generally speaking, it’s been well-received: I’ve received some good comments and questions via Twitter, and some developers have already made their own additions to the Codex.

Last week, I gave a short interview on WordPress JavaScript coding standards with my team at WP Daily.

Continue reading

Offering WordPress Support on Twitter? No Thanks.

Last week, I shared my problems with the WordPress plugins repository. Above all else, I’ve really enjoyed the comments that people have shared – it’s full of good ideas, I’ve had my opinions changed a bit from the initial post, and the conversation is generally respectful.

For those who have been following along, you know that all of this is being shared as I’m slowly working towards the process of restructuring how I build, maintain, and support my plugins.

As such, I’m trying to be as open as I possibly can be about what I like, what I dislike, and what I’m planning to do as this particular restructuring comes into fruition.

One of the things that’s becoming common among businesses – especially larger businesses – is to offer support via Twitter. The more I’ve begun thinking about how to offer support, the more I’m deciding against offering WordPress support on Twitter.

Continue reading

The Most Exhaustive Set of WordPress Test Data

One of the toughest things about building products for WordPress is making sure that you exhaustively test every single nuance of your theme.

Aside from things like post, pages, images, and headings, it includes, widgets, menus, non-breaking test, threaded comments, and so on.

At WordCamp Atlanta, Michael Novotny – the guy responsible for running QA at 8BIT – released WP Test arguably the best tests for WordPress.

Continue reading

Why I Believe in Pressgram

The dangers in blogging about a product or service that your friends are offering is that it comes off as gimmicky or as if there are ulterior motives for doing such.

I recognize that risk and anyone who’s done this has felt this tension; however, I also believe that there’s value in sharing good work from people regardless of if you know them or not.

And for those of you who have followed 8BIT via Twitter or the web for sometime, or who are familiar with John Saddington, you know that he’s currently running a Kickstarter campaign to back his project Pressgram.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑