{"id":126795,"date":"2018-06-04T04:51:57","date_gmt":"2018-06-04T04:51:57","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=126795"},"modified":"2024-02-22T13:03:03","modified_gmt":"2024-02-22T13:03:03","slug":"update-product-custom-attribute-scope-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/","title":{"rendered":"Update Product Custom Attribute Scope in Magento 2"},"content":{"rendered":"\n<p>Here we learn in Magento2 \u2013 How to update the product custom attribute&#8217;s scope in the custom module.<br>If you want to create a new custom attribute in Magento 2, you can check the wonderful blog <a href=\"https:\/\/webkul.com\/blog\/magento2-how-to-create-product-custom-attribute-from-installer-in-custom-module\/\">here<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1202\" height=\"403\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\" alt=\"Update Product Custom Attribute Scope in Magento 2\" class=\"wp-image-127406\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png 1202w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute-250x84.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute-300x101.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute-768x257.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute-1200x402.png 1200w\" sizes=\"(max-width: 1202px) 100vw, 1202px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>If there is an attribute with store view scope.<\/p>\n\n\n\n<p><strong>1st Method: Using the UpgradeData file<\/strong><\/p>\n\n\n\n<p>First, we need to create a file named <strong>UpgradeData.php<\/strong> in our custom module Setup folder.<br><strong>complete path: app\/code\/ModuleNameSpace\/YourModuleName\/Setup\/UpgradeData.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace ModuleNameSpace\\YourModuleName\\Setup;\n\nuse Magento\\Framework\\Setup;\nuse Magento\\Eav\\Setup\\EavSetupFactory;\n\nclass UpgradeData implements Setup\\UpgradeDataInterface \n{\n    \/**\n     * EAV setup factory\n     *\n     * @var EavSetupFactory\n     *\/\n    private $_eavSetupFactory;\n    \/**\n     * @param EavSetupFactory  $eavSetupFactory\n     *\/\n    public function __construct(\n        EavSetupFactory $eavSetupFactory\n    ) {\n        $this-&gt;_eavSetupFactory = $eavSetupFactory;\n    }\n\n    public function upgrade(\n        Setup\\ModuleDataSetupInterface $setup,\n        Setup\\ModuleContextInterface $moduleContext\n    ) {\n        $setup-&gt;startSetup();\n        $eavSetup = $this-&gt;_eavSetupFactory-&gt;create(&#091;&#039;setup&#039; =&gt; $setup]);\n        $eavSetup-&gt;updateAttribute(\n            \\Magento\\Catalog\\Model\\Product::ENTITY,\n            &#039;your_attribute_code&#039;,\n            &#039;is_global&#039;, \\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_GLOBAL\n        );\n        $setup-&gt;endSetup();\n    }\n}<\/pre>\n\n\n\n<p>Now, you have to update the version of the module from the <strong>module.xml<\/strong> file.<\/p>\n\n\n\n<p><strong>2nd Method: Using Data Patch<\/strong><\/p>\n\n\n\n<p>In this method, we need to create a data patch file as\u00a0<strong>UpdateAttributes.php<\/strong> in our custom module Setup folder.  <strong>Note:<\/strong> You can also use the different file names and class names.<br><strong>complete path: app\/code\/ModuleNameSpace\/YourModuleName\/Setup\/Patch\/Data\/UpdateAttributes.php<\/strong><\/p>\n\n\n\n<p>To learn more about data and schema patches, click <a href=\"https:\/\/developer.adobe.com\/commerce\/php\/development\/components\/declarative-schema\/patches\/\">here<\/a>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace ModuleNameSpace\\YourModuleName\\Setup\\Patch\\Data;\n\nuse Magento\\Eav\\Setup\\EavSetupFactory;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\nuse Magento\\Framework\\Setup\\Patch\\DataPatchInterface;\n\nclass UpdateAttributes implements DataPatchInterface\n{\n    \/**\n     * @var ModuleDataSetupInterface\n     *\/\n    private $moduleDataSetup;\n    \/**\n     * @var EavSetupFactory\n     *\/\n    private $eavSetupFactory;\n\n    \/**\n     * @param ModuleDataSetupInterface $moduleDataSetup\n     * @param EavSetupFactory $eavSetupFactory\n     *\/\n    public function __construct(\n        ModuleDataSetupInterface $moduleDataSetup,\n        EavSetupFactory $eavSetupFactory\n    ) {\n        $this-&gt;moduleDataSetup = $moduleDataSetup;\n        $this-&gt;eavSetupFactory = $eavSetupFactory;\n    }\n\n    \/**\n     * Add eav attributes\n     *\/\n    public function apply()\n    {\n        \/** @var EavSetup $eavSetup *\/\n        $eavSetup = $this-&gt;eavSetupFactory-&gt;create(&#091;&#039;setup&#039; =&gt; $this-&gt;moduleDataSetup]);\n\n        $eavSetup-&gt;updateAttribute(\n            \\Magento\\Catalog\\Model\\Product::ENTITY,\n            &#039;your_attribute_code&#039;,\n            &#039;is_global&#039;,\n\\Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface::SCOPE_GLOBAL\n        );\n    }\n\n    \/**\n     * Get dependencies\n     *\/\n    public static function getDependencies()\n    {\n        return &#091;];\n    }\n\n    \/**\n     * Get Aliases\n     *\/\n    public function getAliases()\n    {\n        return &#091;];\n    }\n}<\/pre>\n\n\n\n<p>After adding these files, update your custom product attribute&#8217;s scope in your custom module in your Magento 2 instance\u00a0by running the following command in your magento2 root directory through the terminal.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:upgrade<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1213\" height=\"357\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1.png\" alt=\"Update Product Custom Attribute Scope in Magento 2\" class=\"wp-image-127410\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1.png 1213w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1-250x74.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1-300x88.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1-768x226.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute1-1200x353.png 1200w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>now, the scope of the attribute changes to the Global<br><\/p>\n\n\n\n<p>&#8216;<strong>is_global&#8217; flag is used instead of&nbsp;&#8216;global&#8217; in updating the scope of an attribute.<\/strong><\/p>\n\n\n\n<p>Hope it will help you. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we learn in Magento2 \u2013 How to update the product custom attribute&#8217;s scope in the custom module.If you want to create a new custom attribute in Magento 2, you can check the wonderful blog here If there is an attribute with store view scope. 1st Method: Using the UpgradeData file First, we need to <a href=\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":171,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[1230,2580,580,6788,6787],"class_list":["post-126795","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-custom-attribute","tag-installer","tag-product","tag-scope-update","tag-update-attribute"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Update Product Custom Attribute Scope in Magento 2 - 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\/update-product-custom-attribute-scope-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Update Product Custom Attribute Scope in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Here we learn in Magento2 \u2013 How to update the product custom attribute&#8217;s scope in the custom module.If you want to create a new custom attribute in Magento 2, you can check the wonderful blog here If there is an attribute with store view scope. 1st Method: Using the UpgradeData file First, we need to [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-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=\"2018-06-04T04:51:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-22T13:03:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\" \/>\n<meta name=\"author\" content=\"Anuj Gupta\" \/>\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=\"Anuj Gupta\" \/>\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\/update-product-custom-attribute-scope-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\"},\"author\":{\"name\":\"Anuj Gupta\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b6a9038345794233c3cf41b15a330c4\"},\"headline\":\"Update Product Custom Attribute Scope in Magento 2\",\"datePublished\":\"2018-06-04T04:51:57+00:00\",\"dateModified\":\"2024-02-22T13:03:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\"},\"wordCount\":219,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\",\"keywords\":[\"custom attribute\",\"installer\",\"product\",\"Scope Update\",\"Update Attribute\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\",\"name\":\"Update Product Custom Attribute Scope in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\",\"datePublished\":\"2018-06-04T04:51:57+00:00\",\"dateModified\":\"2024-02-22T13:03:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png\",\"width\":\"1202\",\"height\":\"403\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Product Custom Attribute Scope 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\/8b6a9038345794233c3cf41b15a330c4\",\"name\":\"Anuj Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a46d5e8da91ff0fecc16beee97bfb7b3a8ed158c64c69f50ddc3c1ce7d532e97?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\/a46d5e8da91ff0fecc16beee97bfb7b3a8ed158c64c69f50ddc3c1ce7d532e97?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Anuj Gupta\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/anuj-gupta701\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Update Product Custom Attribute Scope in Magento 2 - 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\/update-product-custom-attribute-scope-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Update Product Custom Attribute Scope in Magento 2 - Webkul Blog","og_description":"Here we learn in Magento2 \u2013 How to update the product custom attribute&#8217;s scope in the custom module.If you want to create a new custom attribute in Magento 2, you can check the wonderful blog here If there is an attribute with store view scope. 1st Method: Using the UpgradeData file First, we need to [...]","og_url":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-06-04T04:51:57+00:00","article_modified_time":"2024-02-22T13:03:03+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png","type":"","width":"","height":""}],"author":"Anuj Gupta","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Anuj Gupta","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/"},"author":{"name":"Anuj Gupta","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/8b6a9038345794233c3cf41b15a330c4"},"headline":"Update Product Custom Attribute Scope in Magento 2","datePublished":"2018-06-04T04:51:57+00:00","dateModified":"2024-02-22T13:03:03+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/"},"wordCount":219,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png","keywords":["custom attribute","installer","product","Scope Update","Update Attribute"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/","name":"Update Product Custom Attribute Scope in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png","datePublished":"2018-06-04T04:51:57+00:00","dateModified":"2024-02-22T13:03:03+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/06\/attribute.png","width":"1202","height":"403"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/update-product-custom-attribute-scope-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Update Product Custom Attribute Scope 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\/8b6a9038345794233c3cf41b15a330c4","name":"Anuj Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a46d5e8da91ff0fecc16beee97bfb7b3a8ed158c64c69f50ddc3c1ce7d532e97?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\/a46d5e8da91ff0fecc16beee97bfb7b3a8ed158c64c69f50ddc3c1ce7d532e97?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Anuj Gupta"},"url":"https:\/\/webkul.com\/blog\/author\/anuj-gupta701\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/126795","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\/171"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=126795"}],"version-history":[{"count":25,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/126795\/revisions"}],"predecessor-version":[{"id":423871,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/126795\/revisions\/423871"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=126795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=126795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=126795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}