• Resolved icopydoc

    (@icopydoc)


    In version 3.6.1, this code has stopped working!
    Returns an empty result.

    
    $product = wc_get_product($postId);
    ....
    echo $product->get_attribute(wc_attribute_taxonomy_name_by_id($attrid));

    In previous versions, it works well.

    Several plugins for WC because of this stopped working correctly((

    • This topic was modified 5 years, 11 months ago by icopydoc.
    • This topic was modified 5 years, 11 months ago by icopydoc.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUG in $product->get_attribute or wc_attribute_taxonomy_name_by_id’ is closed to new replies.