Simulate “Update” button press

I have recently ran an SQL script to update the values of all products for one of it’s post metas (essentially changed the value from 0 to 1). This change doesn’t take effect on the frontend until you click update on the post in the admin area.

I have 300+ products that I naturally don’t want to manually click to update. With that said is there a 1 time function I can run that will run the action of “updating” all products.

Read more here:: Simulate “Update” button press

Leave a Reply

Your email address will not be published. Required fields are marked *