$current_plugins = get_option(’active_plugins’);
if (in_array(’plugindir/pluginfile.php’, $current_plugins)) {
// The plugin is active
}

The above code is useful for developing a theme around certain code.  This is important because a couple of projects I’m working on are intended to integrate external applications (that I’ve written) with WordPress to permit me to automate some work tasks via my website (and record the wine tasting journal so that my g/f can browse it via the website for everything that we’ve tasted before and what we thought about it.)

   

Favorite Books

Favorite Music

© 2011 Undecided Suffusion theme by Sayontan Sinha