Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created March 22, 2013 20:39

Revisions

  1. jameskoster created this gist Mar 22, 2013.
    5 changes: 5 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    if ( ! function_exists( 'is_woocommerce_activated' ) ) {
    function is_woocommerce_activated() {
    if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; }
    }
    }