Retrieves product published time.


  • Full name: the_product_published_time
  • Defined in: cms/core/Shared/Helpers/product.php

Parameters

Parameter Type Description
$productId string Product id.
$format string Format to use for retrieving the time the product was published.
Accepts 'G', 'U', or php date format value specified
in 'time_format' option. Default empty.

Return Value

string

Formatted product published time string or Unix timestamp if $format is 'U' or 'G'. '' on failure.