WooCommerce offers a refund option right from the order edit screen. But what if you need to process WooCommerce refunds automatically through code? In this tutorial, we will create the code that will be able to process refunds for a single order.
WordPress remote functions are great to handle requests with other services. If you have various APIs which you want to access using WordPress, you can use those functions for everything. They can become a little cumbersome with all those settings, but with object oriented programming we can make our requests easier and even more readable.