Add and save admin product variations custom field in Woocommerce
So I've got the following code which makes me add a Barcode field to the Inventory Options of a product. Now I also want to add this to each variations so I can easily add Variation Products when I scan the Barcode of the product via the WooCommerce Point of Sale plugin. Here is what I got currently: // Add Barcode field in simple product inventory options add_action('woocommerce_product_options_sku','add_barcode',10,0); function add_barcode(){ global $woocommerce,$post; woocommerce_wp_text_input( array( 'id' => '_barcode', 'label' => __('Barcode','woocommerce'), 'placeholder' => 'Scan Barcode