How can i get access to updated order data in this function? I am super confused.
I found this code here.
add_action ('save_post_shop_order',
function (int $postId, \WP_Post $post, bool $update): void{
// Ignore order (post) creation
if ($update !== true) {
return;
}
// Here comes your code...
},10,3);
Thanks in advance.