Christmas Celebration SALE! 50% Discount!     Buy Now

How to show the product published date in woocommerce?

By blog

Here we want to know how to show product publish date in woocommerce.

There is simple way to handle this.,

Put this code into functions.php and check the Single product page, you can the result.


add_action('woocommerce_single_product_summary','bloomer_echo_product_date',25);
 
function bloomer_echo_product_date() {
if (is_product() ) {
echo the_date('', '<span class="date_published">Published on: ', '</span>', false);
}
}

Tagged under:

Show Buttons
Hide Buttons