Adding the file upload field to WooCommerce products

The first step in the development process is to provide an interface to let administrators upload files to products. We can implement this by using the metabox technique we used while building the post attachments plugin. However, we are trying to understand plugin customization and hence we are going to integrate this feature into WooCommerce. In the WooCommerce product creation screen, we can find a meta box called Product Data with various tabs such as General, Inventory, Shipping and so on. We are going to add a new tab to the meta box as Product Files. First, we have to look for actions or filters that let us modify the Product Data tabs. You can find a filter called woocommerce_product_data_tabs ...

Get WordPress Development Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.