Daily archives: July 1st, 2009
Smarter Hooks
Now that everyone’s finally understanding the benefits of using theme frameworks and the like, I’m noticing a lot more hooks in themes: theme_before_location(); theme_location(); theme_after_location(); Where location is the location of that particular hook (e.g. header, footer, loop). Now that’s great and all, but here’s a smarter way: do_atomic( ‘location’ ); Where do_atomic is: // Registers three action hooks at once. function do_atomic( ... Read More
Posted in WordPress | Tagged droppin' knowledge on WordPress