Software Engineering in Web Development, Backend Services, and More

Tag: WordPress (Page 193 of 220)

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

Handling The Fragmentation of WordPress Versions, Themes, and Plugins

For the past few weeks, I’ve been talking about the decision to migrate away from the WordPress Plugins Repository and move back to the premium model similar to what I once offered. The truth is, this is going to introduce a bit of WordPress fragmentation which may not be a good thing.

If you’re just catching up on this, here are a few articles about the migration:

I’ve enjoyed the discussion around all of this, but there’s one problem that is introduced when developers opt to move away from the central WordPress repository.

It introduces fragmentation into the market.

Continue reading

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

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

Introducing The WordPress JavaScript Coding Standards

The comments on this post have been closed. Please check out this update for more information.

One of the things that open source advocates always claim is that you should give back to the software that has given you so much.

For some, this comes in the form of code, others this comes in the form of bug testing, tracking tickets, writing documentation, or something along the lines thereof.

Only occasionally do I discuss JavaScript on my blog, but it’s actually one of my favorite languages. In fact, there was a time in my career where I was looking to pure JavaScript applications.

Preferences change, though.

Last year, I made my first contribution to WordPress Core, which was exciting, and I’m currently working to edit the Plugin Developer Handbook with a group of a developers far more talented than I am (so I’m getting to learn from their work for free ;).

Anyway, one of the things about the WordPress Coding Standards that’s always seemed incomplete to me is how little it focused on JavaScript. It provides guides for PHP, for HTML, and it even has a stub for CSS, but there’s nothing in the Codex about JavaScript.

For the past few months, I’ve been working on exactly that. Today, I contributed to the WordPress Coding Standards by introducing the WordPress JavaScript Coding Standards.
Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑