Hello
Thanks for your answer but this is not a plugin, is a custom method that we made in the file functions.php.
The main objective of this method is to obtain the information of the purchase order and its items and to send them to another database through an API.
The strange thing is that in some orders the method is not called.
Thanks!