• Resolved hayulthegoat

    (@hayulthegoat)


    Sir, very thanks for the plugin.
    Is there a way to allow any shortcode at variable_description field?

    https://imgur.com/ziHAEVf

    Below snippet doesn`t work for me.

    add_filter( 'woocommerce_available_variation', 'handsome_bearded_guy_variation_description', 10, 1 );
    
    function handsome_bearded_guy_variation_description( $variation ) {
        $variation['variation_description'] = do_shortcode( $variation['variation_description'] );
        return $variation;
    }
Viewing 1 replies (of 1 total)
  • kimvt1991

    (@kimvt1991)

    Hello,
    As I check, variation_description already supports shortcode without adding any snippet. I think it’s the shortcode you use does not work in this case. Please try other shortcodes to verify this.
    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Allow shortcode in variable_description’ is closed to new replies.