Understanding _n_noop()
How a function that doesn’t do anything can save your life. Well, not really, but close. _n_noop() can be very interesting, especially for APIs in larger plugins.
How a function that doesn’t do anything can save your life. Well, not really, but close. _n_noop() can be very interesting, especially for APIs in larger plugins.
This is a great flash talk by Andrew Nacin, where he discusses the decision making process for evolving WordPress while maintaining backward compatibility. Included are some explanations of the struggles with terms, term meta, and more. This was part of an event at The New York Times, where Scott Taylor also did an interesting talk.
Nice example of filtering get_terms() to orderby the include parameter. It’s also demonstrating with a WooCommerce example, which is handy.
An alternative to Timthumb that includes back compat for <3.5, and a separate function for WP 3.5+.
Today we look at making a WordPress page appear to be the ancestor of a single custom post type by filtering the classes on wp_nav_menu.
What if you want to show hidden information only to “administrators” or “shop managers?” What about displaying a custom “My Account” tab just for logged-in customers?
Matt Cromwell compares a few different image optimization methodsΒ for WordPress sites, including EWWW Image Optimizer, manual optimization, and WPInject. Matt also mentions the WP Smush.it plugin, but interestingly, implies that it produces results similar to EWWW, only less effective. I would’ve liked to see it included as well, since it’s such a widely used plugin….