{"id":339069,"date":"2022-06-10T11:58:57","date_gmt":"2022-06-10T11:58:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=339069"},"modified":"2022-06-10T12:13:09","modified_gmt":"2022-06-10T12:13:09","slug":"how-to-write-upgrade-script-in-prestashop-module","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/","title":{"rendered":"How to write upgrade script in PrestaShop module"},"content":{"rendered":"\n<p>In this blog, we are going to show you how to write an upgrade script in the PrestaShop module.<\/p>\n\n\n\n<p>To easily update the module to a newer version without losing any data of the module.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"491\" height=\"206\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\" alt=\"How to write upgrade script in PrestaShop module\" class=\"wp-image-339084\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png 491w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27-300x126.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27-250x105.png 250w\" sizes=\"(max-width: 491px) 100vw, 491px\" loading=\"lazy\" \/><figcaption>Module Structure<\/figcaption><\/figure>\n\n\n\n<p>You have to create an upgrade folder inside your module as shown in the above image.<\/p>\n\n\n\n<p>Let&#8217;s suppose your current module version is 1.0.0 and you are developing a new version of the same module suppose 1.1.0. <\/p>\n\n\n\n<p>Now you need to alter a few columns in the previous DB table, need to register a new hook, have to create a new table or need to add any data in DB.<\/p>\n\n\n\n<p>For upgrading modules without losing any data PrestaShop provides a solution to write your own upgrade script. <\/p>\n\n\n\n<p>Firstly, you have to just create a folder name <strong>upgrade<\/strong> in the module folder having the next upcoming version upgrade file as <strong>upgrade-1.1.0.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">    &lt;?php\n    function upgrade_module_1_1_0($module)\n    {\n        $queries = array(\n            &quot;ALTER TABLE `&quot;._DB_PREFIX_.&quot;wk_demo`\n            `extra_column` varchar(255) DEFAULT NULL AFTER `old_column`&quot;        \n        );\n        $db = Db::getInstance();\n        $success = true;\n        foreach ($queries as $query) {\n            $success &amp;= $db-&gt;execute($query);\n        } \n        $module-&gt;registerHook(&#039;displayHeader&#039;);\n        $module-&gt;registerHook(&#039;actionFrontControllerSetMedia&#039;);\n        return true;\n    }<\/pre>\n\n\n\n<p>Here we have shown an example for altering a table and adding a new column in DB and registering a few hooks which are not registered previously in the module.<\/p>\n\n\n\n<p>At last, if you are releasing another updated version for the module you have to create the file as <strong>upgrade-2.0.0.php<\/strong> and follow the same rule.<\/p>\n\n\n\n<p>When someone tries to update directly from version 1.0.0 to 2.0.0 then PrestaShop executes the upgrade file script one by one for each version in ascending order.<\/p>\n\n\n\n<p>That\u2019s all.<\/p>\n\n\n\n<p>If you are facing any issues or doubts in the above process, please feel free to contact us through the comment section.<\/p>\n\n\n\n<p>I would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">PrestaShop Development Services<\/a>&nbsp;and a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at&nbsp;<a href=\"mailto:support@webkul.com\" target=\"_blank\" rel=\"noreferrer noopener\">support@webkul.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to show you how to write an upgrade script in the PrestaShop module. To easily update the module to a newer version without losing any data of the module. You have to create an upgrade folder inside your module as shown in the above image. Let&#8217;s suppose your current <a href=\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[4126,2859,289,270,269],"class_list":["post-339069","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-prestashop-1-7","tag-prestashop-blog","tag-prestashop-module","tag-prestashop-module-development","tag-prestashop-module-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to write upgrade script in PrestaShop module - Webkul Blog<\/title>\n<meta name=\"description\" content=\"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.\" \/>\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\/how-to-write-upgrade-script-in-prestashop-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to write upgrade script in PrestaShop module - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\" \/>\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=\"2022-06-10T11:58:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T12:13:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\" \/>\n<meta name=\"author\" content=\"Vineet Kr. Gupta\" \/>\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=\"Vineet Kr. Gupta\" \/>\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\/how-to-write-upgrade-script-in-prestashop-module\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\"},\"author\":{\"name\":\"Vineet Kr. Gupta\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/bb871a3e8dd81b2b0a1690f195da6208\"},\"headline\":\"How to write upgrade script in PrestaShop module\",\"datePublished\":\"2022-06-10T11:58:57+00:00\",\"dateModified\":\"2022-06-10T12:13:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\"},\"wordCount\":295,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\",\"keywords\":[\"Prestashop 1.7\",\"prestashop blog\",\"prestashop module\",\"prestashop module development\",\"Prestashop module installation\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\",\"name\":\"How to write upgrade script in PrestaShop module - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\",\"datePublished\":\"2022-06-10T11:58:57+00:00\",\"dateModified\":\"2022-06-10T12:13:09+00:00\",\"description\":\"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png\",\"width\":491,\"height\":206,\"caption\":\"Screenshot-from-2022-06-10-15-37-27\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to write upgrade script in PrestaShop module\"}]},{\"@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\/bb871a3e8dd81b2b0a1690f195da6208\",\"name\":\"Vineet Kr. Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b8dd0faa3589c82d64586b71a9e84be11a8b9a8f3b74bb952442b904af1c68f2?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\/b8dd0faa3589c82d64586b71a9e84be11a8b9a8f3b74bb952442b904af1c68f2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vineet Kr. Gupta\"},\"description\":\"Proficient Software Engineer specializing in PrestaShop, with expertise in Mobile App Development, eCommerce Platform Development, and POS services. Delivers innovative, user-focused solutions that enhance functionality and drive efficient business operations.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/vineetkr-gupta008\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to write upgrade script in PrestaShop module - Webkul Blog","description":"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.","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\/how-to-write-upgrade-script-in-prestashop-module\/","og_locale":"en_US","og_type":"article","og_title":"How to write upgrade script in PrestaShop module - Webkul Blog","og_description":"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.","og_url":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-06-10T11:58:57+00:00","article_modified_time":"2022-06-10T12:13:09+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png","type":"","width":"","height":""}],"author":"Vineet Kr. Gupta","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vineet Kr. Gupta","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/"},"author":{"name":"Vineet Kr. Gupta","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/bb871a3e8dd81b2b0a1690f195da6208"},"headline":"How to write upgrade script in PrestaShop module","datePublished":"2022-06-10T11:58:57+00:00","dateModified":"2022-06-10T12:13:09+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/"},"wordCount":295,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png","keywords":["Prestashop 1.7","prestashop blog","prestashop module","prestashop module development","Prestashop module installation"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/","url":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/","name":"How to write upgrade script in PrestaShop module - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png","datePublished":"2022-06-10T11:58:57+00:00","dateModified":"2022-06-10T12:13:09+00:00","description":"How to write upgrade script for PrestaShop module to updated it to newer version without loosing data from older version of module.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-10-15-37-27.png","width":491,"height":206,"caption":"Screenshot-from-2022-06-10-15-37-27"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-write-upgrade-script-in-prestashop-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to write upgrade script in PrestaShop module"}]},{"@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\/bb871a3e8dd81b2b0a1690f195da6208","name":"Vineet Kr. Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b8dd0faa3589c82d64586b71a9e84be11a8b9a8f3b74bb952442b904af1c68f2?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\/b8dd0faa3589c82d64586b71a9e84be11a8b9a8f3b74bb952442b904af1c68f2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vineet Kr. Gupta"},"description":"Proficient Software Engineer specializing in PrestaShop, with expertise in Mobile App Development, eCommerce Platform Development, and POS services. Delivers innovative, user-focused solutions that enhance functionality and drive efficient business operations.","url":"https:\/\/webkul.com\/blog\/author\/vineetkr-gupta008\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/339069","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\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=339069"}],"version-history":[{"count":7,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/339069\/revisions"}],"predecessor-version":[{"id":339107,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/339069\/revisions\/339107"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=339069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=339069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=339069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}