DEAL ENDS IN:

SUMMER SALE!

UP TO 35% OFF!

GET IT NOW

Enable If-So Shortcodes in WooCommerce Product Attribute Fields

WooCommerce product attribute fields don’t render shortcodes by default. To display If-So shortcodes within these fields, add the following code snippet to the end of your theme’s functions.php file:

add_filter('woocommerce_attribute',function($a){ return do_shortcode(wp_specialchars_decode($a,ENT_QUOTES)); });
Enable Shortcodes in WooCommerce Product Attribute Fields