A function which retrieves product date.
Uses call_user_func_array() function to return appropriate product date function.
Dynamic part is the variable $type, which calls the date function you need.
- Full name:
get_product_date - Defined in:
cms/core/Shared/Helpers/product.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$type |
string | Type of date to return: created, published, modified. Default: published. |
$productId |
string | Product id. |
Return Value
string
Product date.