Created
February 11, 2016 10:03
-
-
Save mehulkaklotar/929b04de7f5dfa24760f to your computer and use it in GitHub Desktop.
woocommerce add custom shipping methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register a shipping method. | |
* | |
* Registers a shipping method ready to be loaded. Accepts a class name (string) or a class object. | |
* | |
* @package WooCommerce/Classes/Shipping | |
* @since 1.5.7 | |
*/ | |
function woocommerce_register_shipping_method( $shipping_method ) { | |
WC()->shipping->register_shipping_method( $shipping_method ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment