{"id":90767,"date":"2017-07-21T14:10:27","date_gmt":"2017-07-21T14:10:27","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=90767"},"modified":"2017-10-17T06:33:28","modified_gmt":"2017-10-17T06:33:28","slug":"joomla-use-model-another-component","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/","title":{"rendered":"Joomla &#8211; How to use a model in another component"},"content":{"rendered":"<div class=\"panel panel-info\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Introduction<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p style=\"text-align: left\">In this blog we will learn about using a Joomla model outside the scope of a component. As you must be already knowing about\u00a0JModelLegacy Class\u00a0of Joomla which provides methods to get Model, but it has some limits as you cannot access all models using this JModelLegacy::getInstance(\u00a0).<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-default\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Solution &#8211; Admin<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<p>To get all models of any component you have to create your own function, it is recommended to create a static helper function, as you may need to use the function at several places.<\/p>\n<pre class=\"brush:php\">\/**\r\n * Webkul Software.\r\n *\r\n * @category  Webkul\r\n * @author    Webkul\r\n * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license   https:\/\/store.webkul.com\/license.html\r\n *\r\n * getModelAdmin function\r\n *\r\n * @param [String] $component name of component\r\n * @param string $name name of model\r\n * @param string $prefix\r\n * @return Object\r\n *\/\r\nfunction getModelAdmin($component, $name = 'Custom', $prefix = 'CustomModel')\r\n{\r\n    if (!isset($component)) {\r\n        JFactory::getApplication()-&gt;enqueueMessage(JText::_(\"COM_ERROR_MSG\"), 'error');\r\n        return false;\r\n    }\r\n    $path=JPATH_ADMINISTRATOR . '\/components\/'.$component.'\/models\/';\r\n    JModelLegacy::addIncludePath($path);\r\n    require_once $path.strtolower($name).'.php';\r\n    $model = JModelLegacy::getInstance($name, $prefix);\r\n    \/\/ If the model is not loaded then $model will get false\r\n    if ($model == false) {\r\n        $class=$prefix.$name;\r\n        \/\/ initilize the model\r\n        new $class();\r\n        $model = JModelLegacy::getInstance($name, $prefix);\r\n    }\r\n    return $model;\r\n}<\/pre>\n<\/div>\n<\/div>\n<div class=\"panel panel-default\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">For Site<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>A similar function for accessing site models:<\/p>\n<pre class=\"brush:php\">\/**\r\n * Webkul Software.\r\n *\r\n * @category  Webkul\r\n * @author    Webkul\r\n * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\r\n * @license   https:\/\/store.webkul.com\/license.html\r\n *\r\n *\r\n * getModelSite function\r\n *\r\n * @param [String] $component name of component\r\n * @param string $name name of model\r\n * @param string $prefix\r\n * @return Object\r\n *\/\r\nfunction getModelSite($component, $name = 'Custom', $prefix = 'CustomModel')\r\n{\r\n    if (!isset($component)) {\r\n        JFactory::getApplication()-&gt;enqueueMessage(JText::_(\"COM_ERROR_MSG\"), 'error');\r\n        return false;\r\n    }\r\n    $path=JPATH_SITE . '\/components\/'.$component.'\/models\/';\r\n    JModelLegacy::addIncludePath($path);\r\n    require_once $path.strtolower($name).'.php';\r\n    $model = JModelLegacy::getInstance($name, $prefix);\r\n    \/\/ If the model is not loaded then $model will get false\r\n    if ($model == false) {\r\n        $class=$prefix.$name;\r\n        \/\/ initilize the model\r\n        new $class();\r\n        $model = JModelLegacy::getInstance($name, $prefix);\r\n    }\r\n    return $model;\r\n}\r\n\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<blockquote><p>If you find this blog useful please like and share.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this blog we will learn about using a Joomla model outside the scope of a component. As you must be already knowing about\u00a0JModelLegacy Class\u00a0of Joomla which provides methods to get Model, but it has some limits as you cannot access all models using this JModelLegacy::getInstance(\u00a0). Solution &#8211; Admin To get all models of <a href=\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":137,"featured_media":90791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2033,259,4329],"tags":[2058,3,5121,590],"class_list":["post-90767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-joomla-2","category-joomla-virtuemart","category-joomla3-0","category-virtuemart-joomla-2","tag-component","tag-joomla","tag-model","tag-webkul"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How-to-use-joomla-model-another-component-Joomla3.x<\/title>\n<meta name=\"description\" content=\"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.\" \/>\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\/joomla-use-model-another-component\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How-to-use-joomla-model-another-component-Joomla3.x\" \/>\n<meta property=\"og:description\" content=\"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\" \/>\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-07-21T14:10:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-17T06:33:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-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=\"Pratyush Painuly\" \/>\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=\"Pratyush Painuly\" \/>\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\/joomla-use-model-another-component\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\"},\"author\":{\"name\":\"Pratyush Painuly\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/09ba9faa7284860facd76a7417884a4b\"},\"headline\":\"Joomla &#8211; How to use a model in another component\",\"datePublished\":\"2017-07-21T14:10:27+00:00\",\"dateModified\":\"2017-10-17T06:33:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\"},\"wordCount\":116,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png\",\"keywords\":[\"component\",\"joomla\",\"model\",\"webkul\"],\"articleSection\":[\"Joomla\",\"Joomla Virtuemart\",\"Joomla3.0\",\"Virtuemart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\",\"url\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\",\"name\":\"How-to-use-joomla-model-another-component-Joomla3.x\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png\",\"datePublished\":\"2017-07-21T14:10:27+00:00\",\"dateModified\":\"2017-10-17T06:33:28+00:00\",\"description\":\"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png\",\"width\":825,\"height\":260,\"caption\":\"Joomla-MenuItem\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Joomla &#8211; How to use a model in another component\"}]},{\"@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\/09ba9faa7284860facd76a7417884a4b\",\"name\":\"Pratyush Painuly\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/23b59c0d79e4ae21b0acb71f36295738ce2cfd750334e33458478999114d0737?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\/23b59c0d79e4ae21b0acb71f36295738ce2cfd750334e33458478999114d0737?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Pratyush Painuly\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/pratyush-painuly369\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How-to-use-joomla-model-another-component-Joomla3.x","description":"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.","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\/joomla-use-model-another-component\/","og_locale":"en_US","og_type":"article","og_title":"How-to-use-joomla-model-another-component-Joomla3.x","og_description":"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.","og_url":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-07-21T14:10:27+00:00","article_modified_time":"2017-10-17T06:33:28+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png","type":"image\/png"}],"author":"Pratyush Painuly","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Pratyush Painuly","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/"},"author":{"name":"Pratyush Painuly","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/09ba9faa7284860facd76a7417884a4b"},"headline":"Joomla &#8211; How to use a model in another component","datePublished":"2017-07-21T14:10:27+00:00","dateModified":"2017-10-17T06:33:28+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/"},"wordCount":116,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png","keywords":["component","joomla","model","webkul"],"articleSection":["Joomla","Joomla Virtuemart","Joomla3.0","Virtuemart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/","url":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/","name":"How-to-use-joomla-model-another-component-Joomla3.x","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png","datePublished":"2017-07-21T14:10:27+00:00","dateModified":"2017-10-17T06:33:28+00:00","description":"using a Joomla model outside the scope of a component. JModelLegacy Class of Joomla which provides methods to get Model though it has some limitations.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/07\/Joomla-Code-Snippet.png","width":825,"height":260,"caption":"Joomla-MenuItem"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/joomla-use-model-another-component\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Joomla &#8211; How to use a model in another component"}]},{"@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\/09ba9faa7284860facd76a7417884a4b","name":"Pratyush Painuly","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/23b59c0d79e4ae21b0acb71f36295738ce2cfd750334e33458478999114d0737?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\/23b59c0d79e4ae21b0acb71f36295738ce2cfd750334e33458478999114d0737?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Pratyush Painuly"},"url":"https:\/\/webkul.com\/blog\/author\/pratyush-painuly369\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90767","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\/137"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=90767"}],"version-history":[{"count":9,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90767\/revisions"}],"predecessor-version":[{"id":91091,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/90767\/revisions\/91091"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/90791"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=90767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=90767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=90767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}