Create a Custom Shipping Method for WooCommerce

If you have ever developed something for WordPress, be it a theme or a simple plugin

you are already familiar with the modularity of WordPress. WooCommerce is developed with extendability in mind also.

In this tutorial we will create a simple shipping method for WooCommerce which will calculate the cost of shipping. We will also add some restrictions to our plugin so that our shipping method is available only for certain countries.