I created 4 custom fields which are part of calculations that determine what value is placed in a “price” field.
price (not a custom field)
I wrote up a bit of code and placed in my functions.php file and the calculation and the updating of the price field works great!
However, the problem is, if I bulk import products via a CSV file, all the custom field values get uploaded but the the price field does not update because the calculation of it’s determined value relies on updating the post via the update function within WP.
So the only way to update the prices after a bulk upload would be to go into each post individually and update the post.
So how do I get the calculated field to update after a bulk upload?
In case it’s helpful, here is the code I put in my functions.php file…