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.
function adicionar_guia_leadlovers($tabs) { $tabs['guia_leadlovers'] = array( 'label' => __( 'LeadLovers', 'text-domain' ), 'target' => 'leadlovers_product_data', 'class' => array( 'show_if_simple', 'show_if_variable' ), ); return $tabs; } add_filter( 'woocommerce_product_data_tabs', 'adicionar_guia_leadlovers' );
But what hook should I use to replace 'woocommerce_product_options_sku' and write options on my custom tab?
This is the missing hook function for displaying content (and saving field values) for use by your add-on product settings tab "LeadLovers":
That'll be fine