Many different ways exist to structure WordPress plugins. You can use singletons, global references to your plugin class instance, static classes, namespaces and so forth. In this article, many different ways are outlined in the context of extensibility.
Read the code with Rodolfo Melogli! This week in WooCommerce functions we’re looking at
Leland at ThemeLab offers a passionate argument that he does not believe any shortcodes should be included in WordPress themes. I think he makes plenty of good arguments, but I do think we should remember that all a shortcode does is provide a short-reference to a custom function callback. Therefore, you can literally put anything…
Evan Solomon has completely rewritten a command line automation tool for deploying to SVN with Git. It’s called Scatter, and it looks pretty awesome. He’s also got usage examples and a fully updated readme. This looks like a nice way to interact with WordPress and its SVN workflow if you’re more familiar with Git.
Ryan McCue has written an insightful post about caching data in WordPress with the Transients API. Most interesting to me is how he describes expiration in transients as a “maximum age” versus a “guaranteed expiration”. He also makes a worthwhile point about how even when you store transients, it doesn’t mean they won’t be expired…
The wp-cli (command line interface) project has really been gaining traction. Scribu shows in this post how to easily setup unit tests for WordPress plugins using wp-cli.