//ADD CUSTOM FIELD TO SINGLE PRODUCT BEFORE ADD TO CART BUTTON add_action( 'woocommerce_single_variation', 'add_custom_field_before_addtocart', 5 ); function add_custom_field_before_addtocart() { include('woo/custom-field.php'); }
<?php the_field('custom'); ?>