Hello, Magento Developers!!
When customizing orders, Magento uses a plugin to verify that the order has been placed. A core file modification is not an effective solution. Instead, you can override the core plugin methods. Learn More at How to Override Core Plugin Method in Magento 2
Attachment 16727
Complete Tutorial at: https://magecomp.com/blog/override-core-plugin-method-magento-2/