How to show the product published date in woocommerce

Here We show you How to show the product published date in woocommerce. So it might help to customer in case they need to know how “new” a product is. So let’s have a look how to achieve this solutions.

Add below line of code at the end of your theme’s functions.php file of your active child theme (or theme) and Save the file.

add_action('woocommerce_single_product_summary','woocommerce_product_published_date',25);
  
function woocommerce_product_published_date() {
if (is_product() ) {
echo the_date('', 'Published on: ', '', false);
}
}

Leave a Comment

Scroll to Top