{"id":385643,"date":"2023-07-06T11:32:01","date_gmt":"2023-07-06T11:32:01","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=385643"},"modified":"2024-07-12T07:28:37","modified_gmt":"2024-07-12T07:28:37","slug":"how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/","title":{"rendered":"How to Add a Custom Field in the General Tab of Product in Woocommerce"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>In this post, we will see how we can add a custom field to the WooCommerce product edit options in the general tab on the product edit page at the admin end. This can be very useful when we want additional data with the product.<\/p>\n\n\n\n<p>Simply, we can add a custom field according to need and perform the intended task.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add a custom field<\/h2>\n\n\n\n<p>To add custom product fields in the WooCommerce Admin end, you&#8217;ll need to follow these steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Create a child theme (optional): It&#8217;s always recommended to create a child theme before making any modifications to your WooCommerce files. <\/p>\n\n\n\n<p>This ensures that your changes won&#8217;t be overwritten when you update the theme in the future.<\/p>\n\n\n\n<p>If you already have a child theme, you can skip this step.<\/p>\n\n\n\n<p><strong>Note:<\/strong> You can do this same thing by adding a plugin according to your need. it is not mandatory that we can add only a child theme. <\/p>\n\n\n\n<p><strong>Step 2: <\/strong>Open your child theme&#8217;s functions.php file: If you&#8217;re using a child theme, open the functions.php file. Otherwise, open your theme&#8217;s functions.php file.<\/p>\n\n\n\n<p><strong>Step 3<\/strong>: Add custom product fields code: Insert the following code in the functions.php file to create custom product fields:<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Display custom fields in the \"General\" tab of the product edit page\nadd_action('woocommerce_product_options_general_product_data', 'add_custom_product_fields');\n\nfunction add_custom_product_fields()\n{\n    global $product_object;\n\n    echo '&lt;div class=\"product_custom_fields\"&gt;';\n\n    \/\/ Text field\n    woocommerce_wp_text_input(\n        array(\n            'id' =&gt; '_custom_field_text',\n            'label' =&gt; __('Custom Field Text', 'woocommerce'),\n            'placeholder' =&gt; '',\n            'desc_tip' =&gt; 'true',\n            'description' =&gt; __('Enter custom field text here.', 'woocommerce')\n        )\n    );\n\n    \/\/ Select field\n    woocommerce_wp_select(\n        array(\n            'id' =&gt; '_custom_field_select',\n            'label' =&gt; __('Custom Field Select', 'woocommerce'),\n            'options' =&gt; array(\n                'option1' =&gt; __('Option 1', 'woocommerce'),\n                'option2' =&gt; __('Option 2', 'woocommerce'),\n                'option3' =&gt; __('Option 3', 'woocommerce')\n            ),\n            'desc_tip' =&gt; 'true',\n            'description' =&gt; __('Select an option.', 'woocommerce')\n        )\n    );\n\n    echo '&lt;\/div&gt;';\n}<\/pre>\n\n\n\n<p><strong>Save this custom data into the database<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Save custom fields when the product is saved\nadd_action('woocommerce_process_product_meta', 'save_custom_product_fields');\n\nfunction save_custom_product_fields($product_id)\n{\n    \/\/ Save text field\n    $custom_field_text = isset($_POST['_custom_field_text']) ? sanitize_text_field($_POST['_custom_field_text']) : '';\n    update_post_meta($product_id, '_custom_field_text', $custom_field_text);\n\n    \/\/ Save select field\n    $custom_field_select = isset($_POST['_custom_field_select']) ? sanitize_text_field($_POST['_custom_field_select']) : '';\n    update_post_meta($product_id, '_custom_field_select', $custom_field_select);\n}<\/pre>\n\n\n\n<p>Added custom field of the general tab will be saved using the above code snippet as the product will be updated into the post meta database table. <\/p>\n\n\n\n<p>After following these steps, custom fields will be shown in the product general tab. Just looking at the below image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"962\" height=\"613\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\" alt=\"how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce\" class=\"wp-image-386685\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png 962w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce-300x191.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce-250x159.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce-768x489.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>Now you can see the &#8220;Custom field&#8221; as an option and input text in the product general tab. <\/p>\n\n\n\n<p>When editing the product page in the woo-commerce admin area.<\/p>\n\n\n\n<p>Kindly visit the <a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\">Woocommerce Addons<\/a> page to see our addons and can also explore our <a href=\"https:\/\/webkul.com\/woocommerce-development\/\">Woocommerce Development Service<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p>For any technical assistance, please <a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">raise a ticket<\/a> or reach us by mail at&nbsp;<strong>support@webkul.com<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this post, we will see how we can add a custom field to the WooCommerce product edit options in the general tab on the product edit page at the admin end. This can be very useful when we want additional data with the product. Simply, we can add a custom field according to <a href=\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":508,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14367,14368,580,14369,1468,1511],"class_list":["post-385643","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-general-tab","tag-general-tab-custom-field","tag-product","tag-product-general-tab","tag-woocommerce","tag-woocommerce-plugins"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to add custom field in the general tab of Product - Webkul Blog<\/title>\n<meta name=\"description\" content=\"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field\" \/>\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-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add custom field in the general tab of Product - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\" \/>\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=\"2023-07-06T11:32:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-12T07:28:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\" \/>\n<meta name=\"author\" content=\"Gaurav Singh\" \/>\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=\"Gaurav Singh\" \/>\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\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\"},\"author\":{\"name\":\"Gaurav Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c\"},\"headline\":\"How to Add a Custom Field in the General Tab of Product in Woocommerce\",\"datePublished\":\"2023-07-06T11:32:01+00:00\",\"dateModified\":\"2024-07-12T07:28:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\"},\"wordCount\":338,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\",\"keywords\":[\"general tab\",\"general tab custom field\",\"product\",\"product general tab\",\"WooCommerce\",\"woocommerce plugins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\",\"name\":\"How to add custom field in the general tab of Product - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\",\"datePublished\":\"2023-07-06T11:32:01+00:00\",\"dateModified\":\"2024-07-12T07:28:37+00:00\",\"description\":\"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png\",\"width\":962,\"height\":613,\"caption\":\"how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add a Custom Field in the General Tab of Product in Woocommerce\"}]},{\"@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\/9e346a792c1f4cf654b8f7a8ddea4f1c\",\"name\":\"Gaurav Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?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\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gaurav Singh\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add custom field in the general tab of Product - Webkul Blog","description":"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field","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-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to add custom field in the general tab of Product - Webkul Blog","og_description":"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field","og_url":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-07-06T11:32:01+00:00","article_modified_time":"2024-07-12T07:28:37+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png","type":"","width":"","height":""}],"author":"Gaurav Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gaurav Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/"},"author":{"name":"Gaurav Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c"},"headline":"How to Add a Custom Field in the General Tab of Product in Woocommerce","datePublished":"2023-07-06T11:32:01+00:00","dateModified":"2024-07-12T07:28:37+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/"},"wordCount":338,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png","keywords":["general tab","general tab custom field","product","product general tab","WooCommerce","woocommerce plugins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/","url":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/","name":"How to add custom field in the general tab of Product - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png","datePublished":"2023-07-06T11:32:01+00:00","dateModified":"2024-07-12T07:28:37+00:00","description":"custom field in the product general tab, add custom field in the product general tab in woo-commerce, general tab, custom field","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce.png","width":962,"height":613,"caption":"how-to-add-custom-fields-in-the-eneral-tab-of-the-product-edit-page-in-woocommerce"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-add-a-custom-field-in-the-general-tab-of-product-in-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add a Custom Field in the General Tab of Product in Woocommerce"}]},{"@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\/9e346a792c1f4cf654b8f7a8ddea4f1c","name":"Gaurav Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?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\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gaurav Singh"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/385643","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\/508"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=385643"}],"version-history":[{"count":14,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/385643\/revisions"}],"predecessor-version":[{"id":452506,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/385643\/revisions\/452506"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=385643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=385643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=385643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}