REST API updates not visible

[ad_1]

I’m using this plugin with WooCommerce and it works well except when we’re updating/creating products through the REST API.

If I’m changing the post (product) title with a PUT request (wc/v3/products), then the post is updated and I can see the new title in the frontend.

But if I’m changing only the post image with a PUT request, then the image will not be visible.

It works if I’m updating the product in the admin.

The same problem occurs when I’m creating a product with the REST API (POST /wc/v3/products/*). It doesn’t show up in the frontend until I’m updating the product in the admin.

Any solution for this?
I guess it can be some action hooks that are not triggered when the REST API is used for updating the data?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer