Retrieves content created time.
- Full name:
the_created_time - Defined in:
cms/core/Shared/Helpers/content.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentId |
string | Content id. |
$format |
string | Format to use for retrieving the time the content was written. |
| Accepts 'G', 'U', or php date format value specified | ||
| in 'time_format' option. Default empty. |
Return Value
string
Formatted content created time string or Unix timestamp if $format is 'U' or 'G'. '' on failure.