Upload thumbnail field is only available to WooCommerce product category add/edit form. In this tutorial I shall show you how you will add the same upload image field to attributes terms add/edit form.
Creating A PHP File
At first we shall create the PHP file “product-attributes-terms-form-fields.php” and save into the yourthemefolder/woocommerce folder. Code of this file is taking care the following actions
- Adding the Thumbnail field to Add/Edit form
- Saving the upload image ID into the database for future use
- Adding the new column “Image” on listing table
Here is the full code of this file:
The rest of the content is available for Pro members. Click on the PAY NOW button to enable access to this content.