{"id":320154,"date":"2022-01-21T07:58:01","date_gmt":"2022-01-21T07:58:01","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=320154"},"modified":"2022-01-21T13:11:12","modified_gmt":"2022-01-21T13:11:12","slug":"register-customer-from-module-front-controller-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/","title":{"rendered":"Register customer from module front controller PrestaShop 1.7"},"content":{"rendered":"\n<p>In some situations, we need to implement the customer registration from a different\/custom module page. Today we are going to understand the code implementation for the same.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"649\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1200x649.png\" alt=\"The customer registration form\" class=\"wp-image-320200\" title=\"Customer registration form\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1200x649.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-300x162.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-250x135.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-768x416.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog.png 1312w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption> The customer is logged in still getting able to register\/create a customer through the module&#8217;s front controller<\/figcaption><\/figure>\n\n\n\n<p>In this code implementation, we are not going to write a code for the customer registration form rather we will just use the same tpl file which is being used by Prestashop.<br><br>We will understand the process in three steps display blank form, save the input\/submit form, and edit the form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Display a blank form<\/h2>\n\n\n\n<p>To display the native Prestashop customer registration form we just need to add the below code in the initContent() function of our front controller.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$registerForm = $this-&gt;makeCustomerForm()-&gt;setGuestAllowed(false)-&gt;fillWith(Tools::getAllValues());\n$this-&gt;setTemplate(&#039;customer\/registration&#039;);\n$this-&gt;context-&gt;smarty-&gt;assign($registerForm-&gt;getTemplateVariables());\n$this-&gt;context-&gt;smarty-&gt;assign(\n    array(\n        &#039;register_form&#039; =&gt; $registerForm-&gt;getProxy(),\n        &#039;action&#039; =&gt; $this-&gt;context-&gt;link-&gt;getPageLink(\n            &#039;authentication&#039;,\n            true,\n            null,\n            array(&#039;create_account&#039;=&gt;1)\n        ),\n        &#039;hook_create_account_top&#039; =&gt; Hook::exec(&#039;displayCustomerAccountFormTop&#039;),\n    )\n);\n$registerForm-&gt;fillWith(Tools::getAllValues());\n$this-&gt;render(&#039;customer\/_partials\/customer-form.tpl&#039;);<\/pre>\n\n\n\n<p>The above block of code is creating an object of the registration form. And then assigning the template variables with hook data and then rendering the default tpl form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Save\/Create the customer (submit the form) <\/h2>\n\n\n\n<p>To submit the form we just need to pass the form values in fillwith() function as a parameter. And then need to call the submit() function of the registration class.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$registerForm-&gt;fillWith(Tools::getAllValues());\n$hookResult = array_reduce(\n    Hook::exec(&#039;actionSubmitAccountBefore&#039;, array(), null, true),\n    function ($carry, $item) {\n        return $carry &amp;&amp; $item;\n    },\n    true\n);\nif ($hookResult) {\n    $registerForm-&gt;submit();\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Edit\/Load the form with existing details<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\">$objCustomer = new Customer(Tools::getValue(&#039;id_customer&#039;));\n$registerForm-&gt;fillFromCustomer(\n    $objCustomer\n);<\/pre>\n\n\n\n<p>Here we are getting the customer id from the URL and creating the customer object. This customer object is getting used to fill the form details.<\/p>\n\n\n\n<p> So this is the process of how you can get register the customer from your controller page without creating a separate customer registration form.<br><br>Hope after this blog, You will be able to use it easily.<\/p>\n\n\n\n<p>Also, do let us know about your views in the comments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p>For any kind of technical assistance or query, please raise a ticket at <a href=\"http:\/\/webkul.uvdesk.com\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/webkul.uvdesk.com<\/a> or send us a mail at <strong>support@webkul.com<\/strong><\/p>\n\n\n\n<p>Also, please explore our <a href=\"https:\/\/webkul.com\/prestashop-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">PrestaShop development services<\/a> &amp; vast range of featureful <a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Addons<\/a>.<br><br>Thanks for reading. Happy coding. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some situations, we need to implement the customer registration from a different\/custom module page. Today we are going to understand the code implementation for the same. In this code implementation, we are not going to write a code for the customer registration form rather we will just use the same tpl file which is <a href=\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":233,"featured_media":320215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[12322,2065,289],"class_list":["post-320154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-prestashop","tag-customer-registration","tag-prestashop","tag-prestashop-module"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Register customer from module front controller PrestaShop 1.7<\/title>\n<meta name=\"description\" content=\"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.\" \/>\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\/register-customer-from-module-front-controller-prestashop-1-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Register customer from module front controller PrestaShop 1.7\" \/>\n<meta property=\"og:description\" content=\"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\" \/>\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=\"2022-01-21T07:58:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-21T13:11:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1312\" \/>\n\t<meta property=\"og:image:height\" content=\"710\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Peeyush Agrawal\" \/>\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=\"Peeyush Agrawal\" \/>\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\/register-customer-from-module-front-controller-prestashop-1-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\"},\"author\":{\"name\":\"Peeyush Agrawal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/2e0fd1d407790cf03e8ebf7964b37ab6\"},\"headline\":\"Register customer from module front controller PrestaShop 1.7\",\"datePublished\":\"2022-01-21T07:58:01+00:00\",\"dateModified\":\"2022-01-21T13:11:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\"},\"wordCount\":325,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png\",\"keywords\":[\"customer registration\",\"prestashop\",\"prestashop module\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\",\"url\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\",\"name\":\"Register customer from module front controller PrestaShop 1.7\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png\",\"datePublished\":\"2022-01-21T07:58:01+00:00\",\"dateModified\":\"2022-01-21T13:11:12+00:00\",\"description\":\"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png\",\"width\":1312,\"height\":710,\"caption\":\"blog-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Register customer from module front controller PrestaShop 1.7\"}]},{\"@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\/2e0fd1d407790cf03e8ebf7964b37ab6\",\"name\":\"Peeyush Agrawal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2284c09f3afbb0d2b4cabb32607ade2aaa90bed51cb5fcb7f99236b89bb08807?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\/2284c09f3afbb0d2b4cabb32607ade2aaa90bed51cb5fcb7f99236b89bb08807?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Peeyush Agrawal\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/peeyush-agrawal981\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Register customer from module front controller PrestaShop 1.7","description":"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.","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\/register-customer-from-module-front-controller-prestashop-1-7\/","og_locale":"en_US","og_type":"article","og_title":"Register customer from module front controller PrestaShop 1.7","og_description":"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.","og_url":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-01-21T07:58:01+00:00","article_modified_time":"2022-01-21T13:11:12+00:00","og_image":[{"width":1312,"height":710,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png","type":"image\/png"}],"author":"Peeyush Agrawal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Peeyush Agrawal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/"},"author":{"name":"Peeyush Agrawal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/2e0fd1d407790cf03e8ebf7964b37ab6"},"headline":"Register customer from module front controller PrestaShop 1.7","datePublished":"2022-01-21T07:58:01+00:00","dateModified":"2022-01-21T13:11:12+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/"},"wordCount":325,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png","keywords":["customer registration","prestashop","prestashop module"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/","url":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/","name":"Register customer from module front controller PrestaShop 1.7","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png","datePublished":"2022-01-21T07:58:01+00:00","dateModified":"2022-01-21T13:11:12+00:00","description":"Today we are going to understand the code implementation for the customer registration from a different\/custom module page.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/01\/blog-1.png","width":1312,"height":710,"caption":"blog-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/register-customer-from-module-front-controller-prestashop-1-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Register customer from module front controller PrestaShop 1.7"}]},{"@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\/2e0fd1d407790cf03e8ebf7964b37ab6","name":"Peeyush Agrawal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2284c09f3afbb0d2b4cabb32607ade2aaa90bed51cb5fcb7f99236b89bb08807?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\/2284c09f3afbb0d2b4cabb32607ade2aaa90bed51cb5fcb7f99236b89bb08807?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Peeyush Agrawal"},"url":"https:\/\/webkul.com\/blog\/author\/peeyush-agrawal981\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/320154","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\/233"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=320154"}],"version-history":[{"count":16,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/320154\/revisions"}],"predecessor-version":[{"id":320213,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/320154\/revisions\/320213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/320215"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=320154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=320154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=320154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}