skip to Main Content

WordPress – Add shortcode below short description only for WooCommerce products having a specific tag

I found a code that can add a shortcode below the short description of a WooCommerce product: add_filter('woocommerce_short_description','ts_add_text_short_descr'); function ts_add_text_short_descr($description){ $text = do_shortcode('[my-shortcode]'); return $description . $text; } Then I tried to add that shortcode to the short description, only…

VIEW QUESTION
Back To Top
Search