{"id":40004,"date":"2016-01-21T17:43:02","date_gmt":"2016-01-21T17:43:02","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=40004"},"modified":"2017-01-05T08:36:10","modified_gmt":"2017-01-05T08:36:10","slug":"optimize-your-opencart-code","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/","title":{"rendered":"Optimize your OpenCart code"},"content":{"rendered":"<p>If you are an Opencart developer or you have gone through one of\u00a0Opencart&#8217;s\u00a0controller then there, you would find a repetitive code of line for fetching the language or performing some validations. Here, I&#8217;m providing some tips in order to minimise the code from several lines to 5-6 lines.<\/p>\n<p>Here, I&#8217;m covering a few examples to make your OPpencart\u00a0code optimised.<\/p>\n<p>Here&#8217;s the example of language in the product page and the appropriate solution to it. You would find a code like this on many pages.<\/p>\n<pre class=\"brush:php\">$this-&gt;load-&gt;language('catalog\/product');\r\n$data['text_enabled'] = $this-&gt;language-&gt;get('text_enabled');\r\n$data['text_disabled'] = $this-&gt;language-&gt;get('text_disabled');\r\n$data['text_none'] = $this-&gt;language-&gt;get('text_none');\r\n$data['text_yes'] = $this-&gt;language-&gt;get('text_yes');\r\n$data['text_no'] = $this-&gt;language-&gt;get('text_no');\r\n$data['text_plus'] = $this-&gt;language-&gt;get('text_plus');\r\n$data['text_minus'] = $this-&gt;language-&gt;get('text_minus');\r\n$data['text_default'] = $this-&gt;language-&gt;get('text_default');\r\n$data['text_option'] = $this-&gt;language-&gt;get('text_option');\r\n$data['text_option_value'] = $this-&gt;language-&gt;get('text_option_value');\r\n$data['text_select'] = $this-&gt;language-&gt;get('text_select');\r\n$data['text_percent'] = $this-&gt;language-&gt;get('text_percent');\r\n$data['text_amount'] = $this-&gt;language-&gt;get('text_amount');\r\n<\/pre>\n<p>So, this code is can be made very minimised by using just these line of codes.<\/p>\n<pre class=\"brush:php\">$language_array = $this-&gt;load-&gt;language('catalog\/product');\r\n\r\nforeach ($language_array as $language_key =&gt; $language_value) {\r\n\t$data[$language_key] = $language_value;\r\n}<\/pre>\n<p>or, just writing,<\/p>\n<pre class=\"brush:php\">$data = array();\r\n$data = array_merge($data, $this-&gt;load-&gt;language('catalog\/product'));<\/pre>\n<p>or, simply,<\/p>\n<pre class=\"brush:php\">$data = $this-&gt;load-&gt;language('catalog\/product');<\/pre>\n<p>Similarly, we have another code which delivers data to form whether for add or edit.<\/p>\n<pre class=\"brush:php\">if (isset($this-&gt;request-&gt;post['model'])) {\r\n\t$data['model'] = $this-&gt;request-&gt;post['model'];\r\n} elseif (!empty($product_info)) {\r\n\t$data['model'] = $product_info['model'];\r\n} else {\r\n\t$data['model'] = '';\r\n}\r\n\r\nif (isset($this-&gt;request-&gt;post['sku'])) {\r\n\t$data['sku'] = $this-&gt;request-&gt;post['sku'];\r\n} elseif (!empty($product_info)) {\r\n\t$data['sku'] = $product_info['sku'];\r\n} else {\r\n\t$data['sku'] = '';\r\n}\r\n\r\nif (isset($this-&gt;request-&gt;post['upc'])) {\r\n\t$data['upc'] = $this-&gt;request-&gt;post['upc'];\r\n} elseif (!empty($product_info)) {\r\n\t$data['upc'] = $product_info['upc'];\r\n} else {\r\n\t$data['upc'] = '';\r\n}\r\n\r\nif (isset($this-&gt;request-&gt;post['ean'])) {\r\n\t$data['ean'] = $this-&gt;request-&gt;post['ean'];\r\n} elseif (!empty($product_info)) {\r\n\t$data['ean'] = $product_info['ean'];\r\n} else {\r\n\t$data['ean'] = '';\r\n}<\/pre>\n<p>This code can be made optimised by putting all the indexes in one array and then iterating the code for those set of values like this.<\/p>\n<pre class=\"brush:php\">$form_keys = array('model','sku','upc','ean','location','jan','isbn','mpn');\/\/ more values can be added to this array\r\n\r\nforeach ($form_keys as $form_value) {\r\n\tif (isset($this-&gt;request-&gt;post[$form_value])) {\r\n\t\t$data[$form_value] = $this-&gt;request-&gt;post[$form_value];\r\n\t} elseif (!empty($product_info)) {\r\n\t\t$data[$form_value] = $product_info[$form_value];\r\n\t} else {\r\n\t\t$data[$form_value] = '';\r\n\t}\t\t\t\r\n}<\/pre>\n<p>Similar\u00a0will be the case with getting config values. For that too, you can use the above technique.<\/p>\n<p>These were a few optimisations. Other techniques will be posted in the upcoming blogs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are an Opencart developer or you have gone through one of\u00a0Opencart&#8217;s\u00a0controller then there, you would find a repetitive code of line for fetching the language or performing some validations. Here, I&#8217;m providing some tips in order to minimise the code from several lines to 5-6 lines. Here, I&#8217;m covering a few examples to <a href=\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":70,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[2626,2071,2625],"class_list":["post-40004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","tag-code","tag-opencart","tag-optimize"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Optimize your OpenCart code - 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\/optimize-your-opencart-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optimize your OpenCart code - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"If you are an Opencart developer or you have gone through one of\u00a0Opencart&#8217;s\u00a0controller then there, you would find a repetitive code of line for fetching the language or performing some validations. Here, I&#8217;m providing some tips in order to minimise the code from several lines to 5-6 lines. Here, I&#8217;m covering a few examples to [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\" \/>\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-01-21T17:43:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-05T08:36:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.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=\"Vikhyat Sharma\" \/>\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=\"Vikhyat Sharma\" \/>\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\/optimize-your-opencart-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\"},\"author\":{\"name\":\"Vikhyat Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0\"},\"headline\":\"Optimize your OpenCart code\",\"datePublished\":\"2016-01-21T17:43:02+00:00\",\"dateModified\":\"2017-01-05T08:36:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\"},\"wordCount\":185,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"code\",\"opencart\",\"optimize\"],\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\",\"url\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\",\"name\":\"Optimize your OpenCart code - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-01-21T17:43:02+00:00\",\"dateModified\":\"2017-01-05T08:36:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimize your OpenCart code\"}]},{\"@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\/af7160d2546c64a1856ab1b5ce77d9b0\",\"name\":\"Vikhyat Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?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\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikhyat Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Optimize your OpenCart code - 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\/optimize-your-opencart-code\/","og_locale":"en_US","og_type":"article","og_title":"Optimize your OpenCart code - Webkul Blog","og_description":"If you are an Opencart developer or you have gone through one of\u00a0Opencart&#8217;s\u00a0controller then there, you would find a repetitive code of line for fetching the language or performing some validations. Here, I&#8217;m providing some tips in order to minimise the code from several lines to 5-6 lines. Here, I&#8217;m covering a few examples to [...]","og_url":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-01-21T17:43:02+00:00","article_modified_time":"2017-01-05T08:36:10+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Vikhyat Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikhyat Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/"},"author":{"name":"Vikhyat Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0"},"headline":"Optimize your OpenCart code","datePublished":"2016-01-21T17:43:02+00:00","dateModified":"2017-01-05T08:36:10+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/"},"wordCount":185,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["code","opencart","optimize"],"articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/","url":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/","name":"Optimize your OpenCart code - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-01-21T17:43:02+00:00","dateModified":"2017-01-05T08:36:10+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/optimize-your-opencart-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Optimize your OpenCart code"}]},{"@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\/af7160d2546c64a1856ab1b5ce77d9b0","name":"Vikhyat Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?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\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikhyat Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40004","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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=40004"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40004\/revisions"}],"predecessor-version":[{"id":70471,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/40004\/revisions\/70471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=40004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=40004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=40004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}