added exit to woocommerce bugfix in functions so that woocommerce plugin can be disabled on events page