{"id":1673051,"date":"2020-07-10T10:54:05","date_gmt":"2020-07-10T10:54:05","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1673051"},"modified":"2020-12-08T09:37:05","modified_gmt":"2020-12-08T09:37:05","slug":"adding-custom-fields-to-woocomerce-products","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/fr\/course-lesson\/adding-custom-fields-to-woocomerce-products\/","title":{"rendered":"Adding Custom Fields to WooCommerce products"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Steps for adding custom fields to products<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the <strong>Toolset \u2192 Dashboard <\/strong>page and click the <strong>Add custom fields <\/strong>in the row for <strong>Products<\/strong>.<\/li><li>Click to select the type of the custom field you want to create first.<\/li><li>In the dialog that appears, type in the name of your field. The slug is created automatically.<\/li><li>Set other options for your custom field such as description, validation, etc. Different types of fields have different options.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"bf5e443bb7fd46840bdf93f37dadf8a5\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/adding-custom-field-to-products.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/adding-custom-field-to-products-500x543.png\" alt=\"Adding custom fields to WooCommerce products\" class=\"wp-image-1770303\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Adding custom fields to WooCommerce products<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>When you&#8217;re done adding all fields you need, click the <strong>Save Field Group<\/strong> button.<\/p>\n\n\n\n<p>Your group of custom fields will now appear when creating or editing products.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"043a25c86fab0b5328806766d8c5f65b\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-fields-edit-screen.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-fields-edit-screen-500x404.png\" alt=\"Custom fields in a product edit screen\" class=\"wp-image-1770313\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Custom fields in a product edit screen<\/figcaption><\/div><\/figure>\n<\/div>","protected":false},"author":4341,"featured_media":1712597,"template":"","related-lesson":[8445],"class_list":["post-1673051","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-e-commerce"],"_links":{"self":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1673051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1673051\/revisions"}],"predecessor-version":[{"id":1868617,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1673051\/revisions\/1868617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media\/1712597"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media?parent=1673051"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/related-lesson?post=1673051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}