{"id":104206,"date":"2017-12-16T09:48:37","date_gmt":"2017-12-16T09:48:37","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=104206"},"modified":"2021-07-16T13:55:22","modified_gmt":"2021-07-16T13:55:22","slug":"adding-custom-options-product-save-observer-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/","title":{"rendered":"Adding Custom Options on Product Save by Observer in Magento 2"},"content":{"rendered":"\n<p>Hello everyone, very often we need to add some custom options while adding a&nbsp;product in Magento 2 admin. Today, I am going to share that how we can programmatically add custom options to a&nbsp;product by&nbsp;<strong>product_save_after<\/strong> <strong>observer<\/strong> in Magento 2.<\/p>\n\n\n\n<p>First of all, we have to create events.xml&nbsp;in the etc folder of our module structure and define our observer in that, for that write the following code in app\/code\/CompanyName\/ModuleName\/etc\/events.xml<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">&lt;?xml version=\"1.0\"?&gt;\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Event\/etc\/events.xsd\"&gt;\n    &lt;event name=\"catalog_product_save_after\"&gt;\n        &lt;observer name=\"webkul_testmodule_add_custom_option\" instance=\"CompanyName\\ModuleName\\Observer\\AddCustomOption\" \/&gt;\n    &lt;\/event&gt;\n&lt;\/config&gt;\n<\/pre>\n\n\n\n<p>Now, We will add the observer file i.e. AddCustomOption.php at path app\/code\/CompanyName\/ModuleName\/Observer\/ with the following code,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:php\">&lt;?php\n\nnamespace CompanyName\\ModuleName\\Observer;\n\nuse Magento\\Framework\\Event\\ObserverInterface;\n\nclass AddCustomOption implements ObserverInterface\n{\n    protected $_options;\n\n    public function __construct(\n        \\Magento\\Catalog\\Model\\Product\\Option $options\n    ) {\n        $this-&gt;_options = $options;\n    }\n\n    public function execute(\\Magento\\Framework\\Event\\Observer $observer)\n    {\n        $product = $observer-&gt;getProduct();\n        $options = [];\n        $options = [\n            '0' =&gt; [\n                    'sort_order' =&gt; '1',\n                    'title' =&gt; 'option title',\n                    'price_type' =&gt; 'fixed',\n                    'price' =&gt; '5',\n                    'type' =&gt; 'drop_down',\n                    'is_require' =&gt; '0',\n                    'values' =&gt; [\n                        '0' =&gt;[\n                                'title' =&gt; 'A',\n                                'price' =&gt; '50',\n                                'price_type' =&gt; 'fixed',\n                                'sku' =&gt; 'A',\n                                'sort_order' =&gt; '0',\n                                'is_delete' =&gt; '0',\n                        ],\n    \n                        '1' =&gt; [\n                                'title' =&gt; 'B',\n                                'price' =&gt; '100',\n                                'price_type' =&gt; 'fixed',\n                                'sku' =&gt; 'B',\n                                'sort_order' =&gt; '1',\n                                'is_delete' =&gt; '0',\n                        ],\n    \n                        '2' =&gt; [\n                                'title' =&gt; 'C',\n                                'price' =&gt; '150',\n                                'price_type' =&gt; 'fixed',\n                                'sku' =&gt; 'C',\n                                'sort_order' =&gt; '2',\n                                'is_delete' =&gt; '0',\n                        ]\n                    ]\n                ]\n            ];\n        foreach ($options as $arrayOption) {\n            $option = $this-&gt;_options\n                            -&gt;setProductId($product-&gt;getId())\n                            -&gt;setStoreId($product-&gt;getStoreId())\n                            -&gt;addData($arrayOption);\n            $option-&gt;save();\n            $product-&gt;addOption($option);\n        }        \n    }\n}\n<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1221\" height=\"470\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\" alt=\"\" class=\"wp-image-105005\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png 1221w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample-250x96.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample-300x115.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample-768x296.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample-1200x462.png 1200w\" sizes=\"(max-width: 1221px) 100vw, 1221px\" loading=\"lazy\" \/><\/figure><\/div>\n\n\n\n<p>save the code, and try saving a product, the custom options will be created for the product as &nbsp;you can see in the image below-<br>I have used this code in Magento&nbsp;version 2.2.1 but it will work for version 2.1.x as well.<\/p>\n\n\n\n<p>This is all for now. I hope it will help.<\/p>\n\n\n\n<p>For any queries, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, very often we need to add some custom options while adding a&nbsp;product in Magento 2 admin. Today, I am going to share that how we can programmatically add custom options to a&nbsp;product by&nbsp;product_save_after observer in Magento 2. First of all, we have to create events.xml&nbsp;in the etc folder of our module structure and <a href=\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":167,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302,1],"tags":[861,2070,5904],"class_list":["post-104206","post","type-post","status-publish","format-standard","hentry","category-magento2","category-uncategorized","tag-custom-options","tag-magento2","tag-product-save-observer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog<\/title>\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\/adding-custom-options-product-save-observer-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Hello everyone, very often we need to add some custom options while adding a&nbsp;product in Magento 2 admin. Today, I am going to share that how we can programmatically add custom options to a&nbsp;product by&nbsp;product_save_after observer in Magento 2. First of all, we have to create events.xml&nbsp;in the etc folder of our module structure and [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\" \/>\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=\"2017-12-16T09:48:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T13:55:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\" \/>\n<meta name=\"author\" content=\"Hemant Jain\" \/>\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=\"Hemant Jain\" \/>\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\/adding-custom-options-product-save-observer-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\"},\"author\":{\"name\":\"Hemant Jain\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/a824ac6c5c14d32569263100b85f47c6\"},\"headline\":\"Adding Custom Options on Product Save by Observer in Magento 2\",\"datePublished\":\"2017-12-16T09:48:37+00:00\",\"dateModified\":\"2021-07-16T13:55:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\"},\"wordCount\":176,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\",\"keywords\":[\"Custom Options\",\"Magento2\",\"Product save observer\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\",\"name\":\"Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\",\"datePublished\":\"2017-12-16T09:48:37+00:00\",\"dateModified\":\"2021-07-16T13:55:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png\",\"width\":1221,\"height\":470},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Custom Options on Product Save by Observer in 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\/a824ac6c5c14d32569263100b85f47c6\",\"name\":\"Hemant Jain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/184358b1c25c580a3e32952605156294dedfff2b8b75bdb2a719c8e6a5d318b6?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\/184358b1c25c580a3e32952605156294dedfff2b8b75bdb2a719c8e6a5d318b6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Hemant Jain\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/hemant-jain591\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog","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\/adding-custom-options-product-save-observer-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog","og_description":"Hello everyone, very often we need to add some custom options while adding a&nbsp;product in Magento 2 admin. Today, I am going to share that how we can programmatically add custom options to a&nbsp;product by&nbsp;product_save_after observer in Magento 2. First of all, we have to create events.xml&nbsp;in the etc folder of our module structure and [...]","og_url":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-12-16T09:48:37+00:00","article_modified_time":"2021-07-16T13:55:22+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png","type":"","width":"","height":""}],"author":"Hemant Jain","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Hemant Jain","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/"},"author":{"name":"Hemant Jain","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/a824ac6c5c14d32569263100b85f47c6"},"headline":"Adding Custom Options on Product Save by Observer in Magento 2","datePublished":"2017-12-16T09:48:37+00:00","dateModified":"2021-07-16T13:55:22+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/"},"wordCount":176,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png","keywords":["Custom Options","Magento2","Product save observer"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/","url":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/","name":"Adding Custom Options on Product Save by Observer in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png","datePublished":"2017-12-16T09:48:37+00:00","dateModified":"2021-07-16T13:55:22+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/custom-option-sample.png","width":1221,"height":470},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/adding-custom-options-product-save-observer-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Adding Custom Options on Product Save by Observer in 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\/a824ac6c5c14d32569263100b85f47c6","name":"Hemant Jain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/184358b1c25c580a3e32952605156294dedfff2b8b75bdb2a719c8e6a5d318b6?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\/184358b1c25c580a3e32952605156294dedfff2b8b75bdb2a719c8e6a5d318b6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Hemant Jain"},"url":"https:\/\/webkul.com\/blog\/author\/hemant-jain591\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/104206","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\/167"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=104206"}],"version-history":[{"count":12,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/104206\/revisions"}],"predecessor-version":[{"id":296657,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/104206\/revisions\/296657"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=104206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=104206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=104206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}