{"id":66019,"date":"2016-11-26T12:18:47","date_gmt":"2016-11-26T12:18:47","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=66019"},"modified":"2026-01-23T11:59:32","modified_gmt":"2026-01-23T11:59:32","slug":"creating-new-shipping-method-woocommerce","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/","title":{"rendered":"How to create a new Shipping Method in WooCommerce..?"},"content":{"rendered":"\n<p>Today, we will learn how to create a new shipping method in WooCommerce.<\/p>\n\n\n\n<p>Create a custom plugin using WC_Shipping_Method, configure settings, define shipping logic, add it to zones, and enable smooth <a href=\"https:\/\/webkul.com\/woocommerce-shipping-method-development-services\/\">shipping method development in WooCommerce<\/a>.<\/p>\n\n\n\n<p>First of all, Create a function file where all basic details are added like plugin name description author, etc.<\/p>\n\n\n\n<p>Create <strong>function.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Plugin Name:Webkul WooCommerce Shipping\n * Plugin URI: https:\/\/webkul.com\n * Description:This is the test shipping from webkul\n * Author: Webkul\n * Author URI: https:\/\/webkul.com\n * Version: 1.0.0\n * Text Domain: wkwc-shipping\n * Domain Path: languages\/\n *\n * @package Webkul WooCommerce Shipping\n *\/\n\n\/*----- Preventing Direct Access -----*\/\ndefined( &#039;ABSPATH&#039; ) || exit;\n\n\/**\n * Include your shipping file.\n *\/\nfunction wkwc_include_shipping_method() {\n  require_once &#039;wkwc-class-shipping-method.php&#039;;\n}\nadd_action( &#039;woocommerce_shipping_init&#039;, &#039;wkwc_include_shipping_method&#039; );\n\n\/**\n * Add Your shipping method class in the shipping list\n *\/\nfunction wkwc_add_shipping_method( $methods ) {\n  $methods&#091;] = &#039;WKWC_Webkul_Shipping_Method&#039;;\n  return $methods;\n}\nadd_filter( &#039;woocommerce_shipping_methods&#039;, &#039;wkwc_add_shipping_method&#039; );<\/pre>\n\n\n\n<p>Action <strong>woocommerce_shipping_init<\/strong> &nbsp;&#8211; It will be used to include your shipping class file path<\/p>\n\n\n\n<p>Filter <strong>woocommerce_shipping_methods &#8211;&nbsp;<\/strong>&nbsp;It will be used to add a shipping class in the WooCommerce shipping class list.<\/p>\n\n\n\n<p>Now it will be listed in the plugin list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1158\" height=\"266\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/PluginList.png\" alt=\"PluginList\" class=\"wp-image-382033\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/PluginList.png 1158w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/PluginList-300x69.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/PluginList-250x57.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/PluginList-768x176.png 768w\" sizes=\"(max-width: 1158px) 100vw, 1158px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>WooCommerce provides the WC_Shipping_Method class to use and create your own custom shipping method so we just extend here the same class to override the calculate_shipping method and other methods to create the new shipping.<\/p>\n\n\n\n<p>Now&nbsp;create the class file <strong>wkwc-class-shipping-method.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\ndefined( &#039;ABSPATH&#039; ) || exit;\n\nclass WKWC_Webkul_Shipping_Method extends WC_Shipping_Method {\n\n  \/**\n   * Shipping class\n   *\/\n  public function __construct() {\n\n    \/\/ These title description are display on the configuration page\n    $this-&gt;id = &#039;wkwc-shipping-method&#039;;\n    $this-&gt;method_title = esc_html__(&#039;Webkul Shipping&#039;, &#039;wkwc-shipping&#039; );\n    $this-&gt;method_description = esc_html__(&#039;Webkul WooCommerce Shipping&#039;, &#039;wkwc-shipping&#039; );\n\n    \/\/ Run the initial method\n    $this-&gt;init();\n\n   }\n\n   \/**\n    ** Load the settings API\n    *\/\n   public function init() {\n     \/\/ Load the settings API\n     $this-&gt;init_settings();\n\n     \/\/ Add the form fields\n     $this-&gt;init_form_fields();\n   }\n\n   public function init_form_fields() {\n\n     $form_fields = array(\n\n       &#039;enabled&#039; =&gt; array(\n          &#039;title&#039;   =&gt; esc_html__(&#039;Enable\/Disable&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;type&#039;    =&gt; &#039;checkbox&#039;,\n          &#039;label&#039;   =&gt; esc_html__(&#039;Enable this shipping method&#039;, &#039;wkwc-shipping&#039;  ),\n          &#039;default&#039; =&gt; &#039;no&#039;\n       ),\n\n       &#039;title&#039; =&gt; array(\n          &#039;title&#039;       =&gt; esc_html__(&#039;Method Title&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;type&#039;        =&gt; &#039;text&#039;,\n          &#039;description&#039; =&gt; esc_html__(&#039;Enter the method title&#039;, &#039;wkwc-shipping&#039;  ),\n          &#039;default&#039;     =&gt; esc_html__(&#039;&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;desc_tip&#039;    =&gt; true,\n       ),\n\n       &#039;description&#039; =&gt; array(\n          &#039;title&#039;       =&gt; esc_html__(&#039;Description&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;type&#039;        =&gt; &#039;textarea&#039;,\n          &#039;description&#039; =&gt; esc_html__(&#039;Enter the Description&#039;, &#039;wkwc-shipping&#039;  ),\n          &#039;default&#039;     =&gt; esc_html__(&#039;&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;desc_tip&#039;    =&gt; true\n       ),\n\n       &#039;cost&#039; =&gt; array(\n          &#039;title&#039;       =&gt; esc_html__(&#039;Cost&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;type&#039;        =&gt; &#039;number&#039;,\n          &#039;description&#039; =&gt; esc_html__(&#039;Add the method cost&#039;, &#039;wkwc-shipping&#039;  ),\n          &#039;default&#039;     =&gt; esc_html__(&#039;&#039;, &#039;wkwc-shipping&#039; ),\n          &#039;desc_tip&#039;    =&gt; true\n       )\n     );\n\n      $this-&gt;form_fields = $form_fields;\n   }\n\n   \/**\n    ** Calculate Shipping rate\n    *\/\n   public function calculate_shipping( $package = array() ) {\n      $this-&gt;add_rate( array(\n        &#039;id&#039;     =&gt; $this-&gt;id,\n        &#039;label&#039;  =&gt; $this-&gt;settings&#091;&#039;title&#039;],\n        &#039;cost&#039;   =&gt; $this-&gt;settings&#091;&#039;cost&#039;]\n      ));\n   }\n\n}<\/pre>\n\n\n\n<p>After activating the plugin we can see that Webkul Shipping is listed under the WooCommerce Shipping list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/ShippingConfig.png\" alt=\"ShippingConfig\" class=\"wp-image-382045\" width=\"820\" height=\"457\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/ShippingConfig.png 1068w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/ShippingConfig-300x167.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/ShippingConfig-250x140.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/ShippingConfig-768x429.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now we can check at the front how shipping is calculated using calculate_shipping method.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1152\" height=\"579\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CartPage.png\" alt=\"CartPage\" class=\"wp-image-382052\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CartPage.png 1152w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CartPage-300x151.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CartPage-250x126.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CartPage-768x386.png 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>We can see the output on the checkout page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"693\" height=\"574\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CheckOut.png\" alt=\"CheckOut\" class=\"wp-image-382054\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CheckOut.png 693w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CheckOut-300x248.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/CheckOut-250x207.png 250w\" sizes=\"(max-width: 693px) 100vw, 693px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now we can see the Admin order view page where shipping is added successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage-1200x503.png\" alt=\"OrderPage\" class=\"wp-image-382055\" width=\"820\" height=\"343\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage-1200x503.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage-300x126.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage-250x105.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage-768x322.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/OrderPage.png 1232w\" sizes=\"(max-width: 820px) 100vw, 820px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>This is all about how you can add a new shipping method in WooCommerce. Hope you enjoy this article.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\"><\/h3>\n<\/div><\/div>\n\n\n\n<div class=\"wk-index-wrap\"><h3 class=\"index-title\">Support<\/h3><\/div><div class=\"margin-bottom-50\">\n<p>Still, have any issues feel free to <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">raise a ticket<\/a>&nbsp;or send us a mail at&nbsp;<strong>support@webkul.com<\/strong> and let us know your views to make the code better<\/p>\n\n\n\n<p>You may also check out our exclusive&nbsp;<a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\">WooCommerce Plugins<\/a>&nbsp;and can also explore our&nbsp;<a href=\"https:\/\/webkul.com\/woocommerce-development\/\">WooCommerce Development Services.<\/a><\/p>\n\n\n\n<p>Thanks for Your Time..!! Have a Good Day..!!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today, we will learn how to create a new shipping method in WooCommerce. Create a custom plugin using WC_Shipping_Method, configure settings, define shipping logic, add it to zones, and enable smooth shipping method development in WooCommerce. First of all, Create a function file where all basic details are added like plugin name description author, etc. <a href=\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":222,"featured_media":62819,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1773],"tags":[4070,1468,4069],"class_list":["post-66019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","tag-custom-shipping-method-woocommerce","tag-woocommerce","tag-woocommerce-shipping-method"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create new shipping method in WooCommerce<\/title>\n<meta name=\"description\" content=\"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create new shipping method in WooCommerce\" \/>\n<meta property=\"og:description\" content=\"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-26T12:18:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-23T11:59:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Akhilesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Akhilesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\"},\"author\":{\"name\":\"Akhilesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704\"},\"headline\":\"How to create a new Shipping Method in WooCommerce..?\",\"datePublished\":\"2016-11-26T12:18:47+00:00\",\"dateModified\":\"2026-01-23T11:59:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\"},\"wordCount\":298,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png\",\"keywords\":[\"custom shipping method woocommerce\",\"WooCommerce\",\"woocommerce shipping method\"],\"articleSection\":[\"WooCommerce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\",\"url\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\",\"name\":\"How to create new shipping method in WooCommerce\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png\",\"datePublished\":\"2016-11-26T12:18:47+00:00\",\"dateModified\":\"2026-01-23T11:59:32+00:00\",\"description\":\"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png\",\"width\":825,\"height\":260,\"caption\":\"Creating New shipping method in woocommerce\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a new Shipping Method in WooCommerce..?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704\",\"name\":\"Akhilesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Akhilesh Kumar\"},\"description\":\"Akhilesh Kumar is a seasoned professional with 5 years of expertise in WordPress WooCommerce module development, marketplace development, and API development. With a strong foundation in e-commerce technologies, Akhilesh excels in crafting robust solutions to meet diverse business needs, driving success in online retail venture\",\"url\":\"https:\/\/webkul.com\/blog\/author\/akhileshkumar-oc765\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create new shipping method in WooCommerce","description":"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to create new shipping method in WooCommerce","og_description":"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce","og_url":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-11-26T12:18:47+00:00","article_modified_time":"2026-01-23T11:59:32+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png","type":"image\/png"}],"author":"Akhilesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Akhilesh Kumar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/"},"author":{"name":"Akhilesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704"},"headline":"How to create a new Shipping Method in WooCommerce..?","datePublished":"2016-11-26T12:18:47+00:00","dateModified":"2026-01-23T11:59:32+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/"},"wordCount":298,"commentCount":4,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png","keywords":["custom shipping method woocommerce","WooCommerce","woocommerce shipping method"],"articleSection":["WooCommerce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/","url":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/","name":"How to create new shipping method in WooCommerce","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png","datePublished":"2016-11-26T12:18:47+00:00","dateModified":"2026-01-23T11:59:32+00:00","description":"custom new shipping method in WooCommerce with adding custom rates and limiting the list of shipping method in checkout and cart page for woocommerce","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/10\/WordPress-Code-Snippet-1.png","width":825,"height":260,"caption":"Creating New shipping method in woocommerce"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/creating-new-shipping-method-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a new Shipping Method in WooCommerce..?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f3c6faccc651392ee113400a2f5d0704","name":"Akhilesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a488fc7f6a8850e8b8b9585469192b125f44d289c60009655cb84d15153c21ac?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Akhilesh Kumar"},"description":"Akhilesh Kumar is a seasoned professional with 5 years of expertise in WordPress WooCommerce module development, marketplace development, and API development. With a strong foundation in e-commerce technologies, Akhilesh excels in crafting robust solutions to meet diverse business needs, driving success in online retail venture","url":"https:\/\/webkul.com\/blog\/author\/akhileshkumar-oc765\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/66019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/222"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=66019"}],"version-history":[{"count":27,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/66019\/revisions"}],"predecessor-version":[{"id":523479,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/66019\/revisions\/523479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/62819"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=66019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=66019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=66019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}