Daily archives: April 7th, 2009
Does your theme have children?
When working with WordPress theme frameworks or any parent theme, sometimes you might want to figure out whether a child theme is active or not. Here’s a quick function that’ll do exactly that: function has_kids() { if (STYLESHEETPATH !== TEMPLATEPATH) return true; return false; } if ( has_kids() ) { // do stuff } This function works whether you call it from a ... Read More
Posted in WordPress | Tagged droppin' knowledge on WordPress