{"id":42767,"date":"2016-03-09T09:45:37","date_gmt":"2016-03-09T09:45:37","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=42767"},"modified":"2016-03-09T09:45:37","modified_gmt":"2016-03-09T09:45:37","slug":"creating-own-library-in-opencart","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/","title":{"rendered":"Creating own library in opencart"},"content":{"rendered":"<p><strong>Why load model again and again in <\/strong>opencart<strong>, just create your own library and register it with <\/strong>opencart<strong>\u00a0and use it as you need and when you need. <\/strong><\/p>\n<p>If we see the default flow for opencart,\u00a0if you want to fetch any data from database then you have to create model that provides data set and to use model, we have to load it on desired controller.<\/p>\n<p>If we create library\u00a0and register it with opencart\u00a0then we can use it as we use other libraries(customer, cart). There is also added advantage of using library that we can not load model both the sides (admin and catalog),\u00a0if we create it one side only,\u00a0so this problem also be resoved.<\/p>\n<p>Now let&#8217;s see how to do this-<\/p>\n<p>At the very first, create your class file in\u00a0opencart\u00a0directory at system-&gt;library and write down your methods that you want to use as below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42772\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03.png\" alt=\"03\" width=\"791\" height=\"424\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03.png 791w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-250x134.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-300x161.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/03-768x412.png 768w\" sizes=\"(max-width: 791px) 100vw, 791px\" loading=\"lazy\" \/><\/p>\n<p>So the class file is ready, now it must be registered. To register it we have put some code in our initial files like startup.php, front.php etc but I&#8217;ll use front.php because on index.php file, this file is loaded at the last. So alll the required methods or files will be loaded till, this library will get registered. We can do it by ocmod and vqmod.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42770\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01.png\" alt=\"01\" width=\"793\" height=\"60\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01.png 793w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-250x19.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-300x23.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-768x58.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" loading=\"lazy\" \/><\/p>\n<p>We need to put above two lines in constructor of front.php and your library is ready to use any where in catalog. To use it in admin side, same thing need to be done at admin side. Now methods of above class could be used as below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42773\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04.png\" alt=\"04\" width=\"791\" height=\"68\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04.png 791w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-250x21.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-300x26.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/04-768x66.png 768w\" sizes=\"(max-width: 791px) 100vw, 791px\" loading=\"lazy\" \/><\/p>\n<p>There also an another way to call library methods without putting code in front.php file. Use below code to call method\u00a0where ever you want to access these.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-42770\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01.png\" alt=\"01\" width=\"793\" height=\"60\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01.png 793w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-250x19.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-300x23.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/03\/01-768x58.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" loading=\"lazy\" \/><\/p>\n<p>Now this class is limited to controller in which it is used as above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why load model again and again in opencart, just create your own library and register it with opencart\u00a0and use it as you need and when you need. If we see the default flow for opencart,\u00a0if you want to fetch any data from database then you have to create model that provides data set and to <a href=\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":23,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[2834,2835],"class_list":["post-42767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","tag-creating-own-library-in-opencart","tag-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating own library in opencart - 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\/creating-own-library-in-opencart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating own library in opencart - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Why load model again and again in opencart, just create your own library and register it with opencart\u00a0and use it as you need and when you need. If we see the default flow for opencart,\u00a0if you want to fetch any data from database then you have to create model that provides data set and to [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\" \/>\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-03-09T09:45:37+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=\"Avneesh Kumar\" \/>\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=\"Avneesh Kumar\" \/>\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\/creating-own-library-in-opencart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\"},\"author\":{\"name\":\"Avneesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\"},\"headline\":\"Creating own library in opencart\",\"datePublished\":\"2016-03-09T09:45:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\"},\"wordCount\":321,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"Creating own library in opencart\",\"library\"],\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\",\"url\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\",\"name\":\"Creating own library in opencart - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-03-09T09:45:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#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\/creating-own-library-in-opencart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating own library in opencart\"}]},{\"@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\/044b2928fe042b5059bb617e34cd39f9\",\"name\":\"Avneesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?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\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Avneesh Kumar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/avneesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating own library in opencart - 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\/creating-own-library-in-opencart\/","og_locale":"en_US","og_type":"article","og_title":"Creating own library in opencart - Webkul Blog","og_description":"Why load model again and again in opencart, just create your own library and register it with opencart\u00a0and use it as you need and when you need. If we see the default flow for opencart,\u00a0if you want to fetch any data from database then you have to create model that provides data set and to [...]","og_url":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-03-09T09:45:37+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":"Avneesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Avneesh Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/"},"author":{"name":"Avneesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9"},"headline":"Creating own library in opencart","datePublished":"2016-03-09T09:45:37+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/"},"wordCount":321,"commentCount":3,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["Creating own library in opencart","library"],"articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/","url":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/","name":"Creating own library in opencart - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-03-09T09:45:37+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/creating-own-library-in-opencart\/#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\/creating-own-library-in-opencart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating own library in opencart"}]},{"@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\/044b2928fe042b5059bb617e34cd39f9","name":"Avneesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?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\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Avneesh Kumar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/avneesh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42767","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\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=42767"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42767\/revisions"}],"predecessor-version":[{"id":42775,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42767\/revisions\/42775"}],"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=42767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=42767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=42767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}