{"id":42093,"date":"2016-02-27T10:37:17","date_gmt":"2016-02-27T10:37:17","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=42093"},"modified":"2024-02-23T11:00:56","modified_gmt":"2024-02-23T11:00:56","slug":"create-a-product-by-data-patch-file-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/","title":{"rendered":"Create a Product by Data Patch File in Magento 2"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\" alt=\"Magento-Code-Snippet-5-3\" class=\"wp-image-216579\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>To create a product by using the Data Patch file you need to add the file &#8220;CreateProduct.php&#8221; at path:<\/p>\n\n\n\n<p>app\/code\/Webkul\/Hello\/Setup\/Patch\/Data\/CreateProduct.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\Test\\Setup\\Patch\\Data;\n\nuse Magento\\Framework\\Setup\\Patch\\DataPatchInterface;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\nuse Magento\\Framework\\App\\Filesystem\\DirectoryList;\n\nclass CreateProduct implements DataPatchInterface\n{\n    \/**\n     * @var ModuleDataSetupInterface $moduleDataSetup\n     *\/\n    private $moduleDataSetup;\n\n\n    public function __construct(\n        \\Magento\\Catalog\\Model\\Product $productModel,\n        \\Magento\\Store\\Model\\StoreManagerInterface $storeManager,\n        \\Magento\\Framework\\ObjectManagerInterface $objectManager,\n        \\Magento\\Catalog\\Model\\ProductFactory $productFactory\n    ) {\n        $this-&gt;productModel = $productModel;\n        $this-&gt;storeManager = $storeManager;\n        $this-&gt;_objectManager = $objectManager;\n        $this-&gt;productFactory = $productFactory;\n    }\n\n    \/**\n     * Do Upgrade\n     *\n     * @return void\n     *\/\n    public function apply()\n    {\n        $this-&gt;createProduct();\n    }\n\n    \n    private function createProduct()\n    {\n        $appState = $this-&gt;_objectManager-&gt;get(&#039;Magento\\Framework\\App\\State&#039;);\n        $appState-&gt;setAreaCode(\\Magento\\Framework\\App\\Area::AREA_ADMINHTML);\n        $product = $this-&gt;productFactory-&gt;create();\n        $attributeSetId = $this-&gt;productModel-&gt;getDefaultAttributeSetId();\n        $product-&gt;setStoreId(\\Magento\\Store\\Model\\Store::DEFAULT_STORE_ID); \n        $product-&gt;setWebsiteIds(&#091;$this-&gt;storeManager-&gt;getDefaultStoreView()-&gt;getWebsiteId()]);\n        $product-&gt;setTypeId(&#039;simple&#039;);\n        $product-&gt;addData(array(\n            &#039;name&#039; =&gt; &#039;Sample product Test&#039;,\/\/name of product\n            &#039;attribute_set_id&#039; =&gt; $attributeSetId,\n            &#039;status&#039; =&gt; \\Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status::STATUS_ENABLED, \n            &#039;visibility&#039; =&gt; \\Magento\\Catalog\\Model\\Product\\Visibility::VISIBILITY_NOT_VISIBLE, \n            &#039;weight&#039; =&gt; 1,\n            &#039;sku&#039; =&gt; &#039;sample_product&#039;,\/\/SKU of product\n            &#039;tax_class_id&#039; =&gt; 0,\n            &#039;description&#039; =&gt; &#039;sample_product&#039;,\n            &#039;short_description&#039; =&gt; &#039;sample_product&#039;,\n            &#039;stock_data&#039; =&gt; array( \/\/stock management\n                &#039;manage_stock&#039; =&gt; 1,\n                &#039;qty&#039; =&gt; 999, \n                &#039;is_in_stock&#039; =&gt; 1\n            )\n        ));\n        $product-&gt;save();\n    }\n\n\n    \/**\n     * Get aliases\n     *\/\n    public function getAliases()\n    {\n        return &#091;];\n    }\n\n    \/**\n     * Get dependencies\n     *\/\n    public static function getDependencies()\n    {\n        return &#091;];\n    }\n}<\/pre>\n\n\n\n<p>Here,<\/p>\n\n\n\n<p>$this->productModel->getDefaultAttributeSetId(): <strong>used to get get default attribute set id<\/strong><\/p>\n\n\n\n<p>\\Magento\\Catalog\\Model\\Product\\Visibility: <strong>used to get visibility of product<\/strong><\/p>\n\n\n\n<p>\\Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status: <strong>used to get the status of the product<\/strong><\/p>\n\n\n\n<p>$this->storeManager->getDefaultStoreView()->getWebsiteId(): <strong>used to get website id.<\/strong><\/p>\n\n\n\n<p>\\Magento\\Store\\Model\\Store: <strong>used to get store id<\/strong><\/p>\n\n\n\n<p>\\Magento\\Framework\\App\\Area::AREA_ADMINHTML: <strong>used to set &#8220;admin&#8221; as an area code.<\/strong><\/p>\n\n\n\n<p>After that, you just need to run the upgrade command, and your product is created in your site.<\/p>\n\n\n\n<p>Upgrade command: php bin\/magento setup:upgrade<\/p>\n\n\n\n<p>I hope this blog will help you with creating a Product by Installer in Magento 2. You may also check our wide range of best\u00a0<a href=\"https:\/\/store.webkul.com\/Magento-2.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Extensions<\/a>.<\/p>\n\n\n\n<p>Please reach out to our team via a&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\">support ticket<\/a>&nbsp;if you have any queries.<\/p>\n\n\n\n<p>Try this and if you have any queries then just comment below \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create a product by using the Data Patch file you need to add the file &#8220;CreateProduct.php&#8221; at path: app\/code\/Webkul\/Hello\/Setup\/Patch\/Data\/CreateProduct.php Here, $this->productModel->getDefaultAttributeSetId(): used to get get default attribute set id \\Magento\\Catalog\\Model\\Product\\Visibility: used to get visibility of product \\Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status: used to get the status of the product $this->storeManager->getDefaultStoreView()->getWebsiteId(): used to get website id. \\Magento\\Store\\Model\\Store: used to <a href=\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[2070],"class_list":["post-42093","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Product by Installer in Magento 2<\/title>\n<meta name=\"description\" content=\"In this blog we will discuss: Create Product by Installer in Magento 2\" \/>\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\/create-a-product-by-data-patch-file-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Product by Installer in Magento 2\" \/>\n<meta property=\"og:description\" content=\"In this blog we will discuss: Create Product by Installer in Magento 2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\" \/>\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-02-27T10:37:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-23T11:00:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\" \/>\n<meta name=\"author\" content=\"Bulbul\" \/>\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=\"Bulbul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\"},\"author\":{\"name\":\"Bulbul\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e\"},\"headline\":\"Create a Product by Data Patch File in Magento 2\",\"datePublished\":\"2016-02-27T10:37:17+00:00\",\"dateModified\":\"2024-02-23T11:00:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\"},\"wordCount\":189,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\",\"keywords\":[\"Magento2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\",\"name\":\"Create Product by Installer in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\",\"datePublished\":\"2016-02-27T10:37:17+00:00\",\"dateModified\":\"2024-02-23T11:00:56+00:00\",\"description\":\"In this blog we will discuss: Create Product by Installer in Magento 2\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\",\"contentUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Product by Data Patch File in Magento 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\/c9c6288b3950490ffdb37cb2a526996e\",\"name\":\"Bulbul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Bulbul\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/bulbul896\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Product by Installer in Magento 2","description":"In this blog we will discuss: Create Product by Installer in Magento 2","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\/create-a-product-by-data-patch-file-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Create Product by Installer in Magento 2","og_description":"In this blog we will discuss: Create Product by Installer in Magento 2","og_url":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-02-27T10:37:17+00:00","article_modified_time":"2024-02-23T11:00:56+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png","type":"","width":"","height":""}],"author":"Bulbul","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Bulbul","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/"},"author":{"name":"Bulbul","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e"},"headline":"Create a Product by Data Patch File in Magento 2","datePublished":"2016-02-27T10:37:17+00:00","dateModified":"2024-02-23T11:00:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/"},"wordCount":189,"commentCount":1,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png","keywords":["Magento2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/","name":"Create Product by Installer in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png","datePublished":"2016-02-27T10:37:17+00:00","dateModified":"2024-02-23T11:00:56+00:00","description":"In this blog we will discuss: Create Product by Installer in Magento 2","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#primaryimage","url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png","contentUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Magento-Code-Snippet-5-3.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/create-a-product-by-data-patch-file-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create a Product by Data Patch File in Magento 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\/c9c6288b3950490ffdb37cb2a526996e","name":"Bulbul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Bulbul"},"url":"https:\/\/webkul.com\/blog\/author\/bulbul896\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42093","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\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=42093"}],"version-history":[{"count":20,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42093\/revisions"}],"predecessor-version":[{"id":424115,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/42093\/revisions\/424115"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=42093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=42093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=42093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}