I know that updating a wordpress post/producer can be done this way
$post = get_post(27087);
$post->post_content = "Some other content";
wp_update_post( $post );
The detail is that I have 3 plugins (one of them FACEBOOK) that update the content of the product when the UPDATE button of the product is clicked with the POST method of the form.
"I mean when you click update the product in the form Woocommerce"
Any idea how to create an api to refresh/update the product via the POST method of the update product form?
My goal is to activate the plugins that take action within the POST method when submitting the form.