I'm working on a theme right now and I'm using some functions like is_shop() in the header if the woocommerce plugin is installed. However when the plugin isn't installed these functions aren't defined and I run into some issues. What is the best way to deal with this? I've thought about just defining empty functions like function is_shop() { }
. Is this the best way to do this? Or should I do something else?
Thanks.