I was able to edit database directly. Thanks.
I couldn’t this it to work using “is_object()”. I kept getting an error on the product edit page — something like “Fatal error: Call to a member xxx on null woocommerce”.
What is working for me is to wrap the code in both functions with “if(product != null)”.
My changes:
https://pastebin.com/4D3sTw9K
Not a programmer, so the above changes may not be the correct or ideal way to do this.
Thanks Joel. Any chance you can show exactly how you’re using the “is_object check”? What lines are modified, etc.?
I’ve tried wrapping $product->get_variation_attributes() (around line 45) but I’m still receiving an error on the product edit page. I also tried an if(is_object()) statement with no luck. Then again, I really don’t know what I’m doing.
Thanks. These seem like pretty easy fixes for one that knows what they’re doing — maybe the developer will see and update?!