Background of the issue:
I am trying to add a variable product using the latest version of the 'WooCommerce Multilingual & Multicurrency' plugin. After adding all the variables and other product data, I published the product. We are using version 5.2.0, which works right now. After debugging, we found the issue is coming from our active theme functions.php file, but we are unable to pinpoint the issue. The code is below. We have a STAGING website that has the latest version of the 'WooCommerce Multilingual & Multicurrency' plugin. Happy to grant you access so you can potentially debug or point us in the right direction? Many thanks. Link to a page where the issue can be seen: versteckter Link
Symptoms:
The variables are removed after publishing the product.
Questions:
Why are the variables being cleared after publishing the product?
How can I fix the issue with the theme's functions.php file?