I created a custom tab on the product data options panel, but I don't know how to write content in it. I already have a code that prints inventory options (checkboxes, text, etc.) using hooks. add_action('woocommerce_product_options_sku','add_leadlovers_custom_fields' );
I generated this tab using this code.
1 2 3 4 5 6 7 8 9 |
|
But what hook should I use to replace 'woocommerce_product_options_sku' and write options on my custom tab?
P粉8051077172023-07-22 09:56:50
This is the missing hook function for displaying content (and saving field values) for use by your add-on product settings tab "LeadLovers":
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
That'll be fine