I want to programmatically add a settings tab to Product data metabox like this:
The "Verzendkosten" tab was added with firebug (which means "Shipping costs).
How would I programmatically add the "Verzendkosten" custom tab in woocommerce edit-product pages settings?
(and How would I be abled to populate it with data?)
1) You create a custom tab in the custom post type Metabox (Here for "product"),
2) then you can add fields to populate this tab, with different kind of fields (You will find one of each type, so this is a very complete example).
And finally you will find a function that save the data when submitted.
Here it is what you will get visually (for the 6 different custom fields types):
Here is the related code:
Naturally this goes on function.php file of your active child theme (or theme) or in any plugin file.
This code is tested and fully functional
References: