{"id":257613,"date":"2020-07-05T14:47:52","date_gmt":"2020-07-05T14:47:52","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=257613"},"modified":"2020-07-05T14:47:53","modified_gmt":"2020-07-05T14:47:53","slug":"how-to-send-a-custom-email-in-shopware-6","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/","title":{"rendered":"How to send a custom Email in Shopware 6"},"content":{"rendered":"\n<p>In this blog, you are going to learn \u201cHow to send a custom Email in Shopware 6.\u201d<br>I hope you know the directory structure of\u00a0<a href=\"https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure\">Shopware<\/a>\u00a06 plugin, if you don\u2019t know, see here-\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/webkul.com\/blog\/create-product-and-product-variant-in-shopware-6\/\" target=\"_blank\">https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure<\/a>.<\/p>\n\n\n\n<p>For this, you only need to add suitable entries to the database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plugin class<\/h2>\n\n\n\n<p>You can add the database entries inside your plugin install method.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php declare(strict_types=1);\n\nnamespace MyCustomMailTemplate;\n\nuse Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException;\nuse Shopware\\Core\\Content\\MailTemplate\\Aggregate\\MailTemplateType\\MailTemplateTypeEntity;\nuse Shopware\\Core\\Framework\\DataAbstractionLayer\\EntityRepositoryInterface;\nuse Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\Criteria;\nuse Shopware\\Core\\Framework\\DataAbstractionLayer\\Search\\Filter\\EqualsFilter;\nuse Shopware\\Core\\Framework\\Plugin;\nuse Shopware\\Core\\Framework\\Plugin\\Context\\InstallContext;\nuse Shopware\\Core\\Framework\\Plugin\\Context\\UninstallContext;\nuse Shopware\\Core\\Framework\\Uuid\\Uuid;\n\nclass MyCustomMailTemplate extends Plugin\n{\n    public const TEMPLATE_TYPE_NAME = &#039;MyCustomType&#039;;\n    public const TEMPLATE_TYPE_TECHNICAL_NAME = &#039;my_custom_type&#039;;\n    public const MAIL_TEMPLATE_NAME = &#039;MyCustomMailTemplate&#039;;\n\n    public function install(InstallContext $installContext): void\n    {\n        \/** @var EntityRepositoryInterface $mailTemplateTypeRepository *\/\n        $mailTemplateTypeRepository = $this-&gt;container-&gt;get(&#039;mail_template_type.repository&#039;);\n        \/** @var EntityRepositoryInterface $mailTemplateRepository *\/\n        $mailTemplateRepository = $this-&gt;container-&gt;get(&#039;mail_template.repository&#039;);\n        $mailTemplateTypeId = Uuid::randomHex();\n        $mailTemplateType = &#091;\n            &#091;\n                &#039;id&#039; =&gt; $mailTemplateTypeId,\n                &#039;name&#039; =&gt; self::TEMPLATE_TYPE_NAME,\n                &#039;technicalName&#039; =&gt; self::TEMPLATE_TYPE_TECHNICAL_NAME,\n                &#039;availableEntities&#039; =&gt; &#091;\n                    &#039;product&#039; =&gt; &#039;product&#039;,\n                    &#039;salesChannel&#039; =&gt; &#039;sales_channel&#039;\n                ]\n            ]\n        ];\n        $mailTemplate = &#091;\n            &#091;\n                &#039;id&#039; =&gt; Uuid::randomHex(),\n                &#039;mailTemplateTypeId&#039; =&gt; $mailTemplateTypeId,\n                &#039;subject&#039; =&gt; &#091;\n                    &#039;en-GB&#039; =&gt; &#039;Subject of my custom mail template&#039;,\n                    &#039;de-DE&#039; =&gt; &#039;Betreff meiner eigenen Mailvorlage&#039;\n                    ],\n                &#039;contentPlain&#039; =&gt; &quot;Hello,\\nthis is the content in plain text for my custom mail template\\n\\nKind Regards,\\nYours&quot;,\n                &#039;contentHtml&#039; =&gt; &#039;Hello,&lt;br&gt;this is the content in html for my custom mail template&lt;br\/&gt;&lt;br\/&gt;Kind Regards,&lt;br\/&gt;Yours&#039;,\n            ]\n        ];\n\n        try {\n            $mailTemplateTypeRepository-&gt;create($mailTemplateType, $installContext-&gt;getContext());\n            $mailTemplateRepository-&gt;create($mailTemplate, $installContext-&gt;getContext());\n        } catch (UniqueConstraintViolationException $exception) {\n            \n        }\n    }\n\n    public function uninstall(UninstallContext $uninstallContext): void\n    {\n        if ($uninstallContext-&gt;keepUserData()) {\n            return;\n        }\n\n        \/** @var EntityRepositoryInterface $mailTemplateTypeRepository *\/\n        $mailTemplateTypeRepository = $this-&gt;container-&gt;get(&#039;mail_template_type.repository&#039;);\n        \/** @var EntityRepositoryInterface $mailTemplateRepository *\/\n        $mailTemplateRepository = $this-&gt;container-&gt;get(&#039;mail_template.repository&#039;);\n\n        \/** @var MailTemplateTypeEntity $myCustomMailTemplateType *\/\n        $myCustomMailTemplateType = $mailTemplateTypeRepository-&gt;search(\n            (new Criteria())\n                -&gt;addFilter(new EqualsFilter(&#039;technicalName&#039;, self::TEMPLATE_TYPE_TECHNICAL_NAME)),\n            $uninstallContext\n                -&gt;getContext()\n        )-&gt;first();\n\n        $mailTemplateIds = $mailTemplateRepository-&gt;searchIds(\n            (new Criteria())\n                -&gt;addFilter(new EqualsFilter(&#039;mailTemplateTypeId&#039;, $myCustomMailTemplateType-&gt;getId())),\n            $uninstallContext\n                -&gt;getContext()\n        )-&gt;getIds();\n\n        $ids = array_map(static function ($id) {\n            return &#091;&#039;id&#039; =&gt; $id];\n        }, $mailTemplateIds);\n\n        $mailTemplateRepository-&gt;delete($ids, $uninstallContext-&gt;getContext());\n\n        \/\/Delete the TemplateType which were added by this Plugin\n        $mailTemplateTypeRepository-&gt;delete(&#091;\n            &#091;&#039;id&#039; =&gt; $myCustomMailTemplateType-&gt;getId()]\n        ], $uninstallContext-&gt;getContext());\n    }\n}<\/pre>\n\n\n\n<p>Add translations with the matching ISO-Code. You always have to provide a value or the default system language. Later you can change and add translations also in the administration.<\/p>\n\n\n\n<p>If you want to keep the user data save then, do nothing in <code>$uninstallContext-&gt;keepUserData()<\/code> .<br>In the uninstall function of the plugin, you have to fetch the ids and delete the templates which were added by this plugin. To add the mail template you need the following things are id, mailTemplateType, subject, content plain, content Html. Now template will be added in the mail template table. <\/p>\n\n\n\n<p>\u00a0You need to make sure that you have a correct MAILER_URL set or (Settings-&gt;Email template). In this, you can find options STMP and others also, save the configuration. After that mail template type is type decide that which type of mail is this or when it would be sent.This has been configured during the setup process and is stored in the .env file in the root directory. Then you need to set up your email address for outgoing mails in the administration (Settings-&gt;Basic information-&gt;Shop owner email address). After that, the mail template which should be sent has to be assigned to the sales channel. (Settings-&gt;Email templates-&gt;<em>Template<\/em>-&gt;edit-&gt;Sales Channels).<\/p>\n\n\n\n<p>Now your shop is set up to send mails for the given events.<br>You can change any Email template in the administration as well. Just go to the Email templates (Settings-&gt;Email templates-&gt;<em>Template<\/em>-&gt;edit) and change the content of the templates in the\u00a0<em>plain<\/em>\u00a0and\u00a0<em>HTML<\/em>\u00a0boxes.<\/p>\n\n\n\n<p>I hope it will help you. Thanks for reading. Happy Coding \ud83d\ude42<br>Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, you are going to learn \u201cHow to send a custom Email in Shopware 6.\u201dI hope you know the directory structure of\u00a0Shopware\u00a06 plugin, if you don\u2019t know, see here-\u00a0https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure. For this, you only need to add suitable entries to the database. Plugin class You can add the database entries inside your plugin install <a href=\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":284,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-257613","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to send a custom Email in Shopware 6 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.\" \/>\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-send-a-custom-email-in-shopware-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to send a custom Email in Shopware 6 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\" \/>\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=\"2020-07-05T14:47:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-07-05T14:47:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Diwakar Rana\" \/>\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=\"Diwakar Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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-send-a-custom-email-in-shopware-6\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\"},\"author\":{\"name\":\"Diwakar Rana\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f\"},\"headline\":\"How to send a custom Email in Shopware 6\",\"datePublished\":\"2020-07-05T14:47:52+00:00\",\"dateModified\":\"2020-07-05T14:47:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\"},\"wordCount\":354,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\",\"name\":\"How to send a custom Email in Shopware 6 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2020-07-05T14:47:52+00:00\",\"dateModified\":\"2020-07-05T14:47:53+00:00\",\"description\":\"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to send a custom Email in Shopware 6\"}]},{\"@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\/4b025fe4ecbc5c0378cd13bb70da654f\",\"name\":\"Diwakar Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?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\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Diwakar Rana\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/diwakar-rana829\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to send a custom Email in Shopware 6 - Webkul Blog","description":"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.","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-send-a-custom-email-in-shopware-6\/","og_locale":"en_US","og_type":"article","og_title":"How to send a custom Email in Shopware 6 - Webkul Blog","og_description":"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.","og_url":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-07-05T14:47:52+00:00","article_modified_time":"2020-07-05T14:47:53+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Diwakar Rana","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Diwakar Rana","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/"},"author":{"name":"Diwakar Rana","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f"},"headline":"How to send a custom Email in Shopware 6","datePublished":"2020-07-05T14:47:52+00:00","dateModified":"2020-07-05T14:47:53+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/"},"wordCount":354,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/","url":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/","name":"How to send a custom Email in Shopware 6 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2020-07-05T14:47:52+00:00","dateModified":"2020-07-05T14:47:53+00:00","description":"For this, you only need to add suitable entries to the email database. You can add the database entries inside your plugin install method.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-send-a-custom-email-in-shopware-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to send a custom Email in Shopware 6"}]},{"@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\/4b025fe4ecbc5c0378cd13bb70da654f","name":"Diwakar Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?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\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Diwakar Rana"},"url":"https:\/\/webkul.com\/blog\/author\/diwakar-rana829\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257613","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\/284"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=257613"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257613\/revisions"}],"predecessor-version":[{"id":257618,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/257613\/revisions\/257618"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=257613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=257613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=257613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}