我創建與yith woocommerce心願一個主題,其具有如下激活:如何檢查是否YITH Woocommerce收藏在主題
if(! function_exists('WooCommerce')){ function check_yith_enable_or_disable(){ echo do_shortcode("[yith_wcwl_add_to_wishlist]"); } add_action('woocommerce_after_shop_loop_item', 'check_yith_enable_or_disable', 10); }
但是,如果yith woocommerce心願插件是這個會導致網站未激活。我如何檢查yith woocommerce wishlist插件是否已激活?
它的工作。謝謝! –