• Before the update while on the admin screen of editing a downloadable product I could have done:

    $product = wc_get_product( get_the_ID() );
    if ( $product->is_downloadable('yes') ){
    //do work
    }
    
    or
    
    if ( $product->is_downloadable() ){
    //do work
    }
    

    is_downloadable(‘yes’) or is_downloadable() still works for simple downloadable products, but it doesn’t seem to work for variable downloadable products

    • This topic was modified 7 years, 11 months ago by Uriahs Victor.
    • This topic was modified 7 years, 11 months ago by Uriahs Victor.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘is_downloadable not working for variable downloadable products’ is closed to new replies.