{"id":97591,"date":"2017-10-01T12:13:42","date_gmt":"2017-10-01T12:13:42","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=97591"},"modified":"2017-10-03T14:29:35","modified_gmt":"2017-10-03T14:29:35","slug":"optimisation-tips-magento-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/","title":{"rendered":"Optimisation Tips For Magento and Magento2 &#8211; Part 2"},"content":{"rendered":"<p>In last blog we discussed about some optimisation tips.<br \/>\nYou can refer the blog. It might help you.<\/p>\n<h3><a href=\"https:\/\/webkul.com\/blog\/optimizing-magento-magento2-part-1\/\" target=\"_blank\" rel=\"noopener\">Optimisation Tips For Magento And Magento2 &#8211; Part 1<\/a><\/h3>\n<p>&nbsp;<\/p>\n<p>Today i will tell you about some more good methods to optimise the code and application.<\/p>\n<h2>Updating Product Attribute<\/h2>\n<p>if we want to update any attribute value of Product, we load product and then we update the attribute value in product like name, price etc.<\/p>\n<p>There is a method <strong>updateAttributes<\/strong> which is more effective and faster in terms of optimisation.<\/p>\n<pre class=\"brush:php\">\/\/Magento 1\r\n$productId = 1;\r\n$storeId = 1;\r\nMage::getResourceModel('catalog\/product')-&gt;updateAttributes([$productId], ['attribute_code' =&gt; \"attribute value\"], $storeId);\r\n\r\n\r\n\/\/Magento 2\r\n$objManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\r\n$productId = 1;\r\n$storeId = 1;\r\n$objManager-&gt;create('Magento\\Catalog\\Model\\ResourceModel\\Product\\Action')-&gt;updateAttributes([$productId], ['attribute_code' =&gt; \"attribute value\"], $storeId);\r\n\r\n<\/pre>\n<p>You can use this method to update multiple products at same time.<\/p>\n<pre class=\"brush:php\">\/\/Magento 2\r\n$objManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\r\n$productIds = [1,2,3];\r\n$storeId = 0;\r\n$objManager-&gt;create('Magento\\Catalog\\Model\\ResourceModel\\Product\\Action')-&gt;updateAttributes($productIds, ['status' =&gt; 1], $storeId);\r\n\r\n<\/pre>\n<h2>Inserting Multiple Records<\/h2>\n<p>Many times it happens, we need to insert multiple records into the table.<br \/>\nFor example if we want to insert 100 records in table, we will simply load the model and insert the data into the table. But this is not the best way when we want to insert multiple records into table.<br \/>\nWe should use database transactions. One of the benefits of using transaction is that we can rollback the transaction if something went wrong.<br \/>\nYou can refer the blog to know more about database transactions.<br \/>\n<a href=\"https:\/\/webkul.com\/blog\/database-transactions-magento2\/\" target=\"_blank\" rel=\"noopener\">Working With Database Transactions In Magento2<\/a><\/p>\n<pre class=\"brush:php\">\/\/Magento 1\r\ntry {\r\n    $data = [];\r\n    $data[] = [\"field1\" =&gt; \"value1\", \"field2\" =&gt; \"value2\"];\r\n    $data[] = [\"field1\" =&gt; \"value3\", \"field2\" =&gt; \"value4\"];\r\n    $resource = Mage::getSingleton('core\/resource');\r\n    $connection = $resource-&gt;getConnection('core_write');\r\n    $connection-&gt;beginTransaction();\r\n    $connection-&gt;insertMultiple($resource-&gt;getTableName('custom_table'), $data);\r\n    $connection-&gt;commit();\r\n} catch(Exception $e) {\r\n    $connection-&gt;rollBack();\r\n}\r\n\r\n\r\n\/\/Magento 2\r\ntry {\r\n    $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\r\n    $connection = $objectManager-&gt;create('Magento\\Framework\\Module\\ModuleResource')-&gt;getConnection();\r\n    $resource = $objectManager-&gt;create('Magento\\Framework\\App\\ResourceConnection');\r\n    $data = [];\r\n    $data[] = [\"field1\" =&gt; \"value1\", \"field2\" =&gt; \"value2\"];\r\n    $data[] = [\"field1\" =&gt; \"value3\", \"field2\" =&gt; \"value4\"];\r\n    $connection-&gt;beginTransaction();\r\n    $connection-&gt;insertMultiple($resource-&gt;getTableName('custom_table'), $data);\r\n    $connection-&gt;commit();\r\n} catch(\\Exception $e) {\r\n    $connection-&gt;rollBack();\r\n}\r\n\r\n<\/pre>\n<p><strong>insertMultiple<\/strong> method is really very effective when you are inserting large number of records.<br \/>\nBy using this method you can insert 1000 of records without any deadlock or execution time errors.<\/p>\n<p>If you have any doubt or query please comment below.<br \/>\nThanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In last blog we discussed about some optimisation tips. You can refer the blog. It might help you. Optimisation Tips For Magento And Magento2 &#8211; Part 1 &nbsp; Today i will tell you about some more good methods to optimise the code and application. Updating Product Attribute if we want to update any attribute value <a href=\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":21,"featured_media":98036,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,302],"tags":[2056,2070],"class_list":["post-97591","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento","category-magento2","tag-magento","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation\" \/>\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\/optimisation-tips-magento-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-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:author\" content=\"https:\/\/www.facebook.com\/rahul0989\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-01T12:13:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-03T14:29:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-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=\"Rahul Mahto\" \/>\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=\"Rahul Mahto\" \/>\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\/optimisation-tips-magento-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\"},\"author\":{\"name\":\"Rahul Mahto\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\"},\"headline\":\"Optimisation Tips For Magento and Magento2 &#8211; Part 2\",\"datePublished\":\"2017-10-01T12:13:42+00:00\",\"dateModified\":\"2017-10-03T14:29:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\"},\"wordCount\":243,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png\",\"keywords\":[\"magento\",\"Magento2\"],\"articleSection\":[\"magento\",\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\",\"name\":\"Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png\",\"datePublished\":\"2017-10-01T12:13:42+00:00\",\"dateModified\":\"2017-10-03T14:29:35+00:00\",\"description\":\"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png\",\"width\":825,\"height\":260,\"caption\":\"Optimisation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimisation Tips For Magento and Magento2 &#8211; Part 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\/3002e6bca8362f6cf1c61b2663496c4f\",\"name\":\"Rahul Mahto\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?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\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rahul Mahto\"},\"sameAs\":[\"http:\/\/webkul.com\",\"https:\/\/www.facebook.com\/rahul0989\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rahul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog","description":"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation","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\/optimisation-tips-magento-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog","og_description":"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation","og_url":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_author":"https:\/\/www.facebook.com\/rahul0989","article_published_time":"2017-10-01T12:13:42+00:00","article_modified_time":"2017-10-03T14:29:35+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png","type":"image\/png"}],"author":"Rahul Mahto","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rahul Mahto","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/"},"author":{"name":"Rahul Mahto","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f"},"headline":"Optimisation Tips For Magento and Magento2 &#8211; Part 2","datePublished":"2017-10-01T12:13:42+00:00","dateModified":"2017-10-03T14:29:35+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/"},"wordCount":243,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png","keywords":["magento","Magento2"],"articleSection":["magento","Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/","url":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/","name":"Optimisation Tips For Magento and Magento2 - Part 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png","datePublished":"2017-10-01T12:13:42+00:00","dateModified":"2017-10-03T14:29:35+00:00","description":"Optimisation Tips For Magento and Magento2, Best way to update product attribute value, Best practice in Magento, Multiple records manipulation","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/10\/Magneto-Code-Snippet-1.png","width":825,"height":260,"caption":"Optimisation"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/optimisation-tips-magento-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Optimisation Tips For Magento and Magento2 &#8211; Part 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\/3002e6bca8362f6cf1c61b2663496c4f","name":"Rahul Mahto","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?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\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rahul Mahto"},"sameAs":["http:\/\/webkul.com","https:\/\/www.facebook.com\/rahul0989"],"url":"https:\/\/webkul.com\/blog\/author\/rahul\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/97591","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\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=97591"}],"version-history":[{"count":33,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/97591\/revisions"}],"predecessor-version":[{"id":98169,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/97591\/revisions\/98169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/98036"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=97591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=97591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=97591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}