Show Published Date on Single Product Page

Today we take a look at the WooCommerce Single Product Page and specifically at how to display the product published date. It is probably beneficial to customers if you want to expose how “new” a product is, or when you have particular needs.

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


Single Product Page


Published Date on Product Page

Leave a Reply

Your email address will not be published. Required fields are marked *