Output a custom field value in WooCommerce single product and cart pages
问题 I need help to add the custom data in the front end of the product just like this: This image is a sample if PD # i just add and i want it to add in the front end of the product: Just done adding a the custom field in WooCommerce product pages general setting tab, with the help of: How to add a Custom Fields in Woocommerce 3.1 thanks @Ankur Bhadania. Thanks 回答1: For simple products your product '_pd_number' custom field in simple product pages before add-to-cart, using woocommerce_before_add