Home › Forums › Support › Display woocommerce product id in product page This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts November 5, 2020 at 10:08 pm #1519956 melvin Hi, I would like to display the product id in every product page. I’m using GPP Hook element to woocommerce_single_product_summary. Could I know what code I’ve to insert so that the product ID will display as per below? https://imgur.com/a/KRzxP8p Source of Product ID https://imgur.com/a/AGRBXHk November 6, 2020 at 5:01 am #1520270 DavidStaff Customer Support Hi there, try this: <?php global $product; $id = $product->get_id(); echo 'Product Id: ' . $id; ?> Make sure you check Execute PHP in the hook. November 6, 2020 at 6:40 am #1520404 melvin Hi David, Thanks it work perfectly. Bravo! Regards, Melvin November 6, 2020 at 7:41 am #1520687 DavidStaff Customer Support Glad to hear that Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In