I successfully created some custom fields for my WooCommerce products using the code below:
add_action( \'woocommerce_product_options_general_product_data\',