{"id":127854,"date":"2018-06-06T14:18:21","date_gmt":"2018-06-06T14:18:21","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=127854"},"modified":"2024-07-31T12:35:23","modified_gmt":"2024-07-31T12:35:23","slug":"create-custom-order-status-programatically-in-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/","title":{"rendered":"Create Custom Order Status Programatically in Adobe Commerce (Magento 2)"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Let&#8217;s learn how to create custom order status in Adobe Commerce (Magento 2)<\/h3>\n\n\n\n<p>I am using Setup script to create custom order status. We can achieve this by using the following methods:<\/p>\n\n\n\n<p><br><strong>1st Method: Using InstallData file<br><\/strong>Create a file in you custom module like:<br><strong>Webkul\/OrderManagement\/Setup\/InstallData.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Webkul Software\n *\n * @category Webkul\n * @package Webkul_OrderManagement\n * @copyright Webkul Software Private Limited (https:\/\/webkul.com)\n * @license https:\/\/store.webkul.com\/license.html\n *\/\nnamespace Webkul\\OrderManagement\\Setup;\n\nuse Magento\\Framework\\Setup\\InstallDataInterface;\nuse Magento\\Framework\\Setup\\ModuleContextInterface;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\nuse Magento\\Framework\\DB\\Ddl\\Table;\n\nclass InstallData implements InstallDataInterface\n{\n    \/**\n     * Installs DB schema for a module\n     *\n     * @param SchemaSetupInterface $setup\n     * @param ModuleContextInterface $context\n     * @return void\n     *\/\n    public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)\n    {\n        $installer = $setup;\n        $installer-&gt;startSetup(); \n\n        $data&#091;] = &#091;&#039;status&#039; =&gt; &#039;approved&#039;, &#039;label&#039; =&gt; &#039;Approve&#039;];\n        $data&#091;] = &#091;&#039;status&#039; =&gt; &#039;disapproved&#039;, &#039;label&#039; =&gt; &#039;Disapprove&#039;];\n        $setup-&gt;getConnection()-&gt;insertArray($setup-&gt;getTable(&#039;sales_order_status&#039;), &#091;&#039;status&#039;, &#039;label&#039;], $data);\n\n        $setup-&gt;getConnection()-&gt;insertArray(\n        $setup-&gt;getTable(&#039;sales_order_status_state&#039;),\n        &#091;&#039;status&#039;, &#039;state&#039;, &#039;is_default&#039;,&#039;visible_on_front&#039;],\n        &#091;\n            &#091;&#039;approved&#039;,&#039;processing&#039;, &#039;0&#039;, &#039;1&#039;], \n            &#091;&#039;disapproved&#039;, &#039;pending&#039;, &#039;0&#039;, &#039;1&#039;]\n        ]\n        );\n\n        $setup-&gt;endSetup();\n    }\n}<\/pre>\n\n\n\n<p><strong>InstallData<\/strong>\u00a0conforms to\u00a0<strong>InstallDataInterface<\/strong>\u00a0, which requires the implementation of the\u00a0<strong>install<\/strong> method that accepts two parameters of type ModuleDataSetupInterface and ModuleContextInterface .<\/p>\n\n\n\n<p><br><strong>Note:<\/strong>\u00a0The module\u2019s\u00a0<strong>module.xml<\/strong>\u00a0file must have\u00a0<strong>setup_version<\/strong>\u00a0to create customer custom attribute using\u00a0<em>Install<\/em>Data. To know steps to create\u00a0<strong>module<\/strong>\u00a0in Adobe Commerce (Magento 2),\u00a0 you can check our another blog\u00a0<a data-wpel-link=\"internal\" href=\"https:\/\/webkul.com\/blog\/create-hello-module-in-magento2\/\">here<\/a>.<\/p>\n\n\n\n<p><br><strong>2nd Method: Using Data Patch<\/strong><br>In this method, we need to create a data patch file as&nbsp;<strong>OrderStatus.php<\/strong>&nbsp;in our custom module Setup folder.&nbsp;<strong>Note:<\/strong>&nbsp;You can also use the different file name and class name.<br><strong>complete path: app\/code\/Webkul\/<span style=\"color: initial\">OrderManagement<\/span>\/Setup\/Patch\/Data\/OrderStatus.php<\/strong><\/p>\n\n\n\n<p>To know more about data and schema patches, click&nbsp;<a class=\"wk-external-link\" title=\"here\" href=\"https:\/\/developer.adobe.com\/commerce\/php\/development\/components\/declarative-schema\/patches\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow external\" data-wpel-link=\"external\">here<\/a>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Webkul\\OrderManagement\\Setup\\Patch\\Data;\n\nuse Magento\\Framework\\Setup\\Patch\\DataPatchInterface;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\n\nclass OrderStatus implements DataPatchInterface\n{\n    \/**\n     * @var ModuleDataSetupInterface\n     *\/\n    private $moduleDataSetup;\n\n    \/**\n     * @param ModuleDataSetupInterface $moduleDataSetup\n     *\/\n    public function __construct(\n        ModuleDataSetupInterface $moduleDataSetup,\n    ) {\n        $this-&gt;moduleDataSetup = $moduleDataSetup;\n    }\n\n    \/**\n     * Add eav attributes\n     *\/\n    public function apply()\n    {\n        $installer = $this-&gt;moduleDataSetup;\n        $installer-&gt;startSetup();\n        $data&#091;] = &#091;&#039;status&#039; =&gt; &#039;approved&#039;, &#039;label&#039; =&gt; &#039;Approve&#039;];\n        $data&#091;] = &#091;&#039;status&#039; =&gt; &#039;disapproved&#039;, &#039;label&#039; =&gt; &#039;Disapprove&#039;];\n        $this-&gt;moduleDataSetup-&gt;getConnection()-&gt;insertArray(\n            $this-&gt;moduleDataSetup-&gt;getTable(&#039;sales_order_status&#039;),\n            &#091;&#039;status&#039;, &#039;label&#039;],\n            $data\n        );\n        $this-&gt;moduleDataSetup-&gt;getConnection()-&gt;insertArray(\n            $this-&gt;moduleDataSetup-&gt;getTable(&#039;sales_order_status_state&#039;),\n            &#091;&#039;status&#039;, &#039;state&#039;, &#039;is_default&#039;,&#039;visible_on_front&#039;],\n            &#091;\n                &#091;&#039;approved&#039;,&#039;processing&#039;, &#039;0&#039;, &#039;1&#039;],\n                &#091;&#039;disapproved&#039;, &#039;pending&#039;, &#039;0&#039;, &#039;1&#039;]\n            ]\n        );\n        $installer-&gt;endSetup();\n    }\n\n    \/**\n     * Get dependencies\n     *\/\n    public static function getDependencies()\n    {\n        return &#091;];\n    }\n\n    \/**\n     * Get Aliases\n     *\/\n    public function getAliases()\n    {\n        return &#091;];\n    }\n}<\/pre>\n\n\n\n<p><br>After that run: <strong>php bin\/magento setup:upgrade<\/strong> command<\/p>\n\n\n\n<p>Check Order status grid now <strong>Stores-&gt;Order Status<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1256\" height=\"587\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\" alt=\"create custom order status\" class=\"wp-image-127855\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png 1256w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus-250x117.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus-300x140.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus-768x359.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus-1200x561.png 1200w\" sizes=\"(max-width: 1256px) 100vw, 1256px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>For technical assistance, please contact us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>. Additionally, explore a wide range of solutions to enhance your online store&#8217;s functionality by visiting the <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Adobe Commerce extensions<\/a> page.<\/p>\n\n\n\n<p>If you need professional advice or wish to create bespoke features, consider hiring <a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">Adobe Commerce Developers<\/a> for your project.<\/p>\n\n\n\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s learn how to create custom order status in Adobe Commerce (Magento 2) I am using Setup script to create custom order status. We can achieve this by using the following methods: 1st Method: Using InstallData fileCreate a file in you custom module like:Webkul\/OrderManagement\/Setup\/InstallData.php InstallData\u00a0conforms to\u00a0InstallDataInterface\u00a0, which requires the implementation of the\u00a0install method that accepts <a href=\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[6803,2070,6804],"class_list":["post-127854","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-custom-order-status","tag-magento2","tag-order-status-in-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Custom Order Status Programatically in Adobe Commerce<\/title>\n<meta name=\"description\" content=\"Let&#039;s learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.\" \/>\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\/create-custom-order-status-programatically-in-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Custom Order Status Programatically in Adobe Commerce\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\" \/>\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=\"2018-06-06T14:18:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-31T12:35:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\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=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Create Custom Order Status Programatically in Adobe Commerce (Magento 2)\",\"datePublished\":\"2018-06-06T14:18:21+00:00\",\"dateModified\":\"2024-07-31T12:35:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\"},\"wordCount\":245,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\",\"keywords\":[\"Custom Order Status\",\"Magento2\",\"Order Status in Magento2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\",\"name\":\"Create Custom Order Status Programatically in Adobe Commerce\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\",\"datePublished\":\"2018-06-06T14:18:21+00:00\",\"dateModified\":\"2024-07-31T12:35:23+00:00\",\"description\":\"Let's learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png\",\"width\":\"1256\",\"height\":\"587\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Custom Order Status Programatically in Adobe Commerce (Magento 2)\"}]},{\"@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\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Custom Order Status Programatically in Adobe Commerce","description":"Let's learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.","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\/create-custom-order-status-programatically-in-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Create Custom Order Status Programatically in Adobe Commerce","og_description":"Let's learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.","og_url":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-06-06T14:18:21+00:00","article_modified_time":"2024-07-31T12:35:23+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png","type":"","width":"","height":""}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Create Custom Order Status Programatically in Adobe Commerce (Magento 2)","datePublished":"2018-06-06T14:18:21+00:00","dateModified":"2024-07-31T12:35:23+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/"},"wordCount":245,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png","keywords":["Custom Order Status","Magento2","Order Status in Magento2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/","url":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/","name":"Create Custom Order Status Programatically in Adobe Commerce","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png","datePublished":"2018-06-06T14:18:21+00:00","dateModified":"2024-07-31T12:35:23+00:00","description":"Let's learn how to create custom order status in Adobe Commerce (Magento 2). I am using Setup script to create custom order status.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/OrderStatus.png","width":"1256","height":"587"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/create-custom-order-status-programatically-in-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Custom Order Status Programatically in Adobe Commerce (Magento 2)"}]},{"@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\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/127854","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=127854"}],"version-history":[{"count":7,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/127854\/revisions"}],"predecessor-version":[{"id":455619,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/127854\/revisions\/455619"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=127854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=127854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=127854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}