I have this function to echo the 'my_custom_field' value, and it works fine:
add_action('woocommerce_before_add_to_cart_form' , 'my_function');
function my_function(){
echo get_post_meta( get_the_ID(), 'my_custom_field', true );
}
But this only prints the value. I need to also print the translated title of this custom field. How can get this?