WooCommerce: Adding a function before the Hook

So I’ve got the following function to add a barcode field in the Product Inventory tab. However this field is being added after all the other content, and I would like to have this before the SKU code.

function add_barcode(){
    global $woocommerce,$post;
            'id'          => '_barcode',
            'label'       => __('Barcode','woocommerce'),
            'placeholder' => 'Scan Barcode',
            'desc_tip'    => 'true',
            'description' => __('Scan barcode.','woocommerce')

Is there anyway to place the function/field before the SKU aka before the actual hook, like something in terms of _before?

Thanks for any suggestions in advance.

Read more here: WooCommerce: Adding a function before the Hook

Leave a Reply

Your email address will not be published. Required fields are marked *