I wrote a PHP script to create and XML of all my WooCommerce products.
This runs every night via a cronjob and works fine. But I want it to run after post_updated, how can I manage to do this? Can't figure it out :(
function check_values(){
//Here it needs to run the specific PHP file to create the new XML after for example updating the product price
}
add_action( 'post_updated', 'check_values', 10, 3 );