@daisha
To add labels for custom fields in WooCommerce, you can use the following steps:
1 2 3 4 5 6 7 8 9 |
add_filter('woocommerce_get_custom_product_tabs', 'add_custom_tab_fields'); function add_custom_tab_fields($fields){ // Add label for custom field $fields['custom_tab'] = array( 'label' => __('Custom Field Label', 'woocommerce'), 'target' => 'your_custom_field_name', ); return $fields; } |
Note: Make sure to backup your functions.php file before making any changes, in case you need to revert to the original code.