Learn how to not break things on other people’s OS’s. \o/
Continue reading →
Author / Nate
Be a good neighbour and reset the loop
You’re welcome to hijack the loop. But please put it back the way you found it. Continue reading →
esc_js
This is a public service announcement. esc_js() exists. That is all.
Use variable hook names like your cool older brother WordPress does
All those filter_{variable}_hooks provide a neat abstraction if you’re building an extensible product. Continue reading →
Load your fancy pants plugin or theme on a fresh install
You probably forgot to check if an option isset() before relying on it. Continue reading →
Filter all the things
Filters aren’t just for WP core. They’re for you too! Continue reading →
Get your theme mods from get_theme_mods()
Don’t be daft and try to go directly to get_option( 'theme_mods_themeslug' )
. Continue reading →
Don’t manhandle that query string
?query=strings&are=fucking&annoying=sometimes. Don’t go parsing them yourself. Continue reading →
get_posts() doesn’t love you as much as you love it
get_posts() bypasses several filters that get hit when you call WP_Query. It also misses out on some performance enhancements. Continue reading →
Taxonomy descriptions are a real thing. Use them
Did you know that taxonomies have descriptions that can be displayed on their archive pages? Me neither. Continue reading →